Service Launcher

UUID: serviceLauncher@hulygun
Last edited:
3 weeks ago 2023-05-11, 12:56
Last commit: [0bc94d15] French translations for several applets (#4847)


Log In To Comment!


ksergk-2 years ago
error t=2021-01-23T11:46:25Z [serviceLauncher@hulygun]: Expected type filename for Array element but got type 'undefined' [serviceLauncher@hulygun]: Failed to evaluate 'main' function on applet: serviceLauncher@hulygun/49 error t=2021-01-23T11:46:25Z [serviceLauncher@hulygun]: Applet serviceLauncher@hulygun: Could not create applet object. [serviceLauncher@hulygun]: Error importing applet.js from serviceLauncher@hulygun
Marty Neal
Marty Neal-5 years ago
Also, because it uses sudo, you'll want to edit your /etc/sudoers file in two ways - First, allow your service to be started/stopped without a password. You can do this by adding these two lines at the *END* of the file: ALL ALL=(ALL) NOPASSWD: /usr/bin/systemctl start <YOUR_SERVICE>.service ALL ALL=(ALL) NOPASSWD: /usr/bin/systemctl stop <YOUR_SERVICE>.service Second, ensure that the requiretty option is unset for systemctl with the line: Defaults!/usr/bin/systemctl !requiretty
Marty Neal
Marty Neal-5 years ago
From inspecting the code, it seems it uses pgrep to see if is running and only then issue the systemctl command.
Josef Kulhánek
Josef Kulhánek-6 years ago
Hi, unfortunately does not work as expected. I need start and stop VPN service, and when I add the service to the menu and turn it on, the service stay stopped. Any recommendation for me? Thanks.