Page 1 of 1

Please Help for crontab unrealircd 4.2.4

Posted: Mon Jun 29, 2020 11:33 pm
by Suratka
I have not found an answer in the old posts.
I need to know how to set up the crontab in case of crash and reboot.
whereas it starts from /home/irc/.unrealircd start

It would be worth knowing the exact script to put in the crontab file. THANK YOU. :*

Code: Select all

*/1 * * * * /home/irc/unrealircd/.unrealircd start >/dev/null 2>&1

*/1 * * * * /home/irc/unrealircd/.unrealircd start 

*/1 * * * * /home/irc/unrealircd//bin/.unrealircd  >/dev/null 2>&1

*/1 * * * * /home/irc/unrealircd//bin/.unrealircd

*/5 * * * * /home/yourusername/unrealircd/unrealircd croncheck
@reboot /home/yourusername/unrealircd/unrealircd croncheck 
I made several attempts, as you see set to one minute, to see if they worked? but none of this goes.
Where am I wrong?

Re: Please Help for crontab unrealircd 4.2.4

Posted: Tue Jun 30, 2020 9:39 pm
by CrazyCat
This crontab works:

Code: Select all

* * * * * /home/username/unrealircd/unrealircd croncheck > /dev/null 2>&1
Think to replace /home/username/unrealircd/ with the real path to your unrealircd binary.
* or */1 are the same things, don't complicate :)

Re: Please Help for crontab unrealircd 4.2.4

Posted: Wed Jul 01, 2020 9:59 am
by Suratka
set the crontab for the znc without any problem, following the normal procedure. From terminal and user I typed: cronotab -e, asked me which editor I wanted to use, and I chose "nano" I edited, I saved and everything was ok. But in this other vps with ubuntu16 it doesn't work. When I type: crontab -e look what it looks like:

Code: Select all

ircd@irc:~/unrealircd$ crontab -e
125
3


?

?
d
and I can not set the crontab and I can no longer get out of that mode, I am forced to close the ssh terminal and reconnect again. Then from root I went into the directory: "var / spool / cron / crontabs and I created a file called" ircd "and edited it.
now when via ssh I type: crontabs -l the file appears to me ..

Code: Select all

ircd@irc:~$ crontab -l
*/1 * * * * /home/ircd/unrealircd/unrealircd croncheck > /dev/null 2>&1
@reboot /home/ircd/unrealircd/unrealircd unrealircd

ircd@irc:~$
So the file is now there but comq the crontabs does not go. I am truly mortified by my ignorance.

Re: Please Help for crontab unrealircd 4.2.4

Posted: Wed Jul 01, 2020 10:29 am
by Suratka

Code: Select all

# Edit this file to introduce tasks to be run by cron.
*/1 * * * * /home/ircd/unrealircd/unrealircd croncheck > /dev/null 2>&1
@reboot /home/ircd/unrealircd/unrealircd unrealircd?
:wp
?
:q
I can't save the file.

Re: Please Help for crontab unrealircd 4.2.4

Posted: Wed Jul 01, 2020 11:11 am
by Suratka
Resolved. I set the EDITOR environment variable to NANO with the command: export EDITOR = nano before setting the crontab, so I set it with the editor I know. saved and left; THANK YOU :*