Service Launcher

UUID: serviceLauncher@hulygun
Last edited:
2 months ago 2022-06-07, 06:26
Last commit: [6cb6d031] [All supported applets] Updates/Adds Italian translations (#4357)

Description

Log In To Comment!

4 Comments

ksergk
ksergk-1 year 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 service.name is running and only then issue the systemctl command.
Josef Kulhánek
Josef Kulhánek-5 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.