DreamMaster
Aug 19 2016

Crontab for znc
4  3K+ {{tagitem.name}}
Hello,

I've tried to set up a crontab job for znc, but I'm not sure how to do it or if I even did it properly.

*/10 * * * * znc >/dev/null 2>&1

Is what I have added in my crontab config. I also tried full path like this: */10 * * * * /home/DreamMaster/.znc/.znc >/dev/null 2>&1 but the tutorial I have found says znc without the dot in it. So I'm confused here and can't find a way to verify it at the moment.. I would be honored if you can help me out with it.

A lot of thanks in advance!
try killing the znc using
killall znc
and see if it comes back after 10 mins. And unless you compiled znc by yourself, you should only give the path as 'znc' or check the output of
which znc
noteness    Aug 20 2016
The op can also use xPanel to gracefully shutdown all processes, which will kill not only znc, but all of the processes.
Staff StephenS    Aug 23 2016
Your command looks all right however if you want to start a locally compiled znc, you have to declare its path in your crontab entry. Like this:
*/10 * * * * /home/DreamMaster/znc/bin/znc >/dev/null 2>&1 (without dots)
trttl    Aug 23 2016
I agree with trttl. Off topic, trttl you can use code tags inside of [] to make it more visible.
Staff StephenS    Aug 23 2016

Please Login or Sign Up to leave a reply.