Please Help for crontab unrealircd 4.2.4

Talk about pretty much anything here, but DO NOT USE FOR SUPPORT.

Moderator: Supporters

Post Reply
Suratka
Posts: 54
Joined: Thu Nov 14, 2019 12:32 am

Please Help for crontab unrealircd 4.2.4

Post by Suratka » Mon Jun 29, 2020 11:33 pm

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: 122
Joined: Thu Apr 28, 2005 1:05 pm
Location: France
Contact:

Re: Please Help for crontab unrealircd 4.2.4

Post by CrazyCat » Tue Jun 30, 2020 9:39 pm

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: 54
Joined: Thu Nov 14, 2019 12:32 am

Re: Please Help for crontab unrealircd 4.2.4

Post by Suratka » Wed Jul 01, 2020 9:59 am

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: 54
Joined: Thu Nov 14, 2019 12:32 am

Re: Please Help for crontab unrealircd 4.2.4

Post by Suratka » Wed Jul 01, 2020 10:29 am

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: 54
Joined: Thu Nov 14, 2019 12:32 am

Re: Please Help for crontab unrealircd 4.2.4

Post by Suratka » Wed Jul 01, 2020 11:11 am

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

Post Reply