Is there a trick to controlling services from cron?
I tried both of these:
* * * * * stopservice ServiceName > stopser.txt
* * * * * service ServiceName stop > stopserv2.txt
Either of these commands work from ssh, but not from cron.
Cron is working, becuase I'm able to run this:
* * * * * env > cronenv.txt
and get
USER=root
SHLVL=1
HOME=/root
LOGNAME=root
TERM=linux
PATH=/usr/sbin:/usr/bin:/sbin:/bin
SHELL=/bin/sh
PWD=/root