What's new

services-start script won't start ?

Mikii

Regular Contributor
Hi. I also have a problem of a services-start script not starting.

My "Enable JFFS custom scripts and configs" is enabled.



Code:
/jffs/scripts/services-start# ls -la
drwxrwxrwx    2 Michele  root             0 Aug 14 12:35 .
drwxr-xr-x    4 Michele  root             0 Aug 14 12:14 ..
-rwxrwxrwx    1 Michele  root           148 Aug 14 12:27 startwebcheckok.sh

here's the script as it is now:
Code:
#!/bin/sh
sleep 120
echo "pippo" > my.txt
/usr/sbin/cru a CheckWebCommand "*/2 * * * * sh /tmp/mnt/MicUSBsctipts/micscripts/checkwebvpncommand.sh"

If I execute manually everything works as expected, but upon reboot, nothing happens. No my.txt and no cronjob added.

I have diversion installed, could this be a problem?

any help would be MUCH appreciated!

Michele
 
services-start must be the name of the script, not a directory of other scripts.
 
ah-ah! Thank you. I don't know how I assumed that had to be a directory!

thank you very much!

Michele
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top