Please Help for crontab unrealircd 4.2.4

If your UnrealIRCd is up and running but you have a question about it, then use this forum.
(NOT for installation or connecting issues! Use the other forum instead.)

Moderator: Supporters

Locked
Suratka
Posts: 72
Joined: Thu Nov 14, 2019 12:32 am
Contact:

Please Help for crontab unrealircd 4.2.4

Post 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?
CrazyCat
Posts: 215
Joined: Thu Apr 28, 2005 1:05 pm
Location: France
Contact:

Re: Please Help for crontab unrealircd 4.2.4

Post 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 :)
Suratka
Posts: 72
Joined: Thu Nov 14, 2019 12:32 am
Contact:

Re: Please Help for crontab unrealircd 4.2.4

Post 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.
Suratka
Posts: 72
Joined: Thu Nov 14, 2019 12:32 am
Contact:

Re: Please Help for crontab unrealircd 4.2.4

Post 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.
Suratka
Posts: 72
Joined: Thu Nov 14, 2019 12:32 am
Contact:

Re: Please Help for crontab unrealircd 4.2.4

Post 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 :*
Locked