hanzo Posted October 13, 2021 Share Posted October 13, 2021 I have a shell script which I would like to run as a daemon/service. I had a look at the User Scripts plugin and whilst it can run the script. I cannot stop/restart the script. #!/bin/bash cd /root/myapp if pgrep -x "/root/myapp/./app" > /dev/null then echo "Already running" else echo "Not running. Starting..." /root/myapp/./app fi Is it possible to do something like this in UNRAID? # service myapp start # service myapp stop # service myapp restart # service myapp start # systemctl start myapp # systemctl stop myapp # systemctl restart myapp # systemctl status myapp Thanks. Quote Link to comment
Solution mgutt Posted June 25, 2022 Solution Share Posted June 25, 2022 unRAID uses Slackware. Slackware's path to the services is /etc/rc.d List all services: ls /etc/rc.d Restart a service: /etc/rc.d/rc.ntpd restart Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.