in reply to Calling System Service command fails in cronjob
You can find out the full path to service command like this:system("/usr/sbin/service jboss blah blah blah");
If this works your problem is most probably the PATH environment variable. From section 5 of Debian crontab manpage: "Note in particular that if you want a PATH other than "/usr/bin:/bin", you will need to set it in the crontab file."# which service
Update: You should also search PM for something like "crontab path" to get further advice.
Have a nice day, j
|
|---|