Hey all,
I currently have a strange issue when it comes to running a cron task that executes a basic script that restarts a few services within a couple of jails.
This is the command for the script:
/mnt/Production/Homes/alpha/restart-deluge.sh
And the script itself:
I don't think I am missing anything here but whenever the cron job executes it just hangs indefinitely until I run the script manually. When I run the script manually everything executes just fine. I'm running the script as the root user. Any ideas why this is having such a weird issue?
I currently have a strange issue when it comes to running a cron task that executes a basic script that restarts a few services within a couple of jails.
This is the command for the script:
/mnt/Production/Homes/alpha/restart-deluge.sh
And the script itself:
Code:
#!/bin/sh jexec ioc-deluge /usr/sbin/service openvpn restart sleep 10 jexec ioc-deluge /usr/sbin/service deluged restart sleep 10 jexec ioc-deluge_web /usr/sbin/service deluge_web restart
I don't think I am missing anything here but whenever the cron job executes it just hangs indefinitely until I run the script manually. When I run the script manually everything executes just fine. I'm running the script as the root user. Any ideas why this is having such a weird issue?