October 13, 20214 yr 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.
June 25, 20224 yr Solution 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
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.