Page 1 of 1

nee desktop launcher in linux to start stop manualy

PostPosted: Sat Sep 17, 2022 10:45 am
by glda19
Hi
On a webpage i found this
And then in the desktop entry create a launcher to do

systemctl start myprocess.service

I make launcher
And then in the desktop entry create a launcher to do

systemctl start serviio.service

But when i look with systemctl status serviio.service in termial screen
serviio is still dead nig running why?

Re: nee desktop launcher in linux to start stop manualy

PostPosted: Tue Sep 20, 2022 3:27 pm
by cmakula
Are you using a sudo on that serviio.service start?

Systemctl usually runs as root (if you use the Ubuntu wiki page for install, it always runs as root), so it needs admin rights... I wouldn't think that you could start it as a desktop icon, unless you were logged in as root (which I wouldn't suggest), or run the service startup in a shell script from a desktop icon (which should require a password entry).

There are also other reasons it may not run (openjdk or jre, or some other prerequisite not installed),

If the service is not starting when all is said and done, Serviio should start when run directly using a command in the terminal. If configured under the Ubuntu wiki, that command would be " sudo /opt/serviio/bin/serviio.sh" (the process will end when you close the terminal window, so don't close it right away). If the process refuses to start you should get an error in that terminal window, following the command, telling you why it did not start.