Service Launcher

UUID: serviceLauncher@hulygun
Last edited:
1 week ago 2024-04-09, 13:50
Last commit: [591f8222] Translation files cleanup (#5676)

Description

Log In To Comment!

4 Comments

ksergk
ksergk-3 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-6 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-6 years ago
From inspecting the code, it seems it uses pgrep to see if service.name 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.