I had programmed a cronjob to restart a service with an apparent memory leak weekly and got an email saying that the
killproc command wasn't found.
That's in /sbin/killproc and I don't want to modify the service script, even though I'd prefer it to use absolute paths so I'm opting to weasel my fix by way of cron.
So, I don't want to set the
PATH at the top of the crontab file as per the man page apparently says (according to other posts I've seen on the internet, not my man page). How can I structure my crontab line to set one path variable (and not squash root's PATH altogether) just for this script?
This is what I want to do
0 0 * * 0 /etc/init.d/tic_minus restart
this is what I want to avoid
From: All your customers
Stopping tic_minus: /etc/init.d/tic_minus: line 43: killproc: command not found