HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Technical (http://www.howtoforge.com/forums/forumdisplay.php?f=8)
-   -   by accident deleted the cronjob from ispconfig 3 (http://www.howtoforge.com/forums/showthread.php?t=61895)

hbmmafia 19th May 2013 17:29

by accident deleted the cronjob from ispconfig 3
 
A good morning to all from the netherlands here .....
my issue is as follow ...
by accident i deleted the cronjob from ispconig 3 over ssh
now almost nothing is working please help me how to make a new cronjob so it works again thanks so much ....

hbmmafia 19th May 2013 22:21

solved
 
maybe not the correct way but it works .....
what i have done was installed the ispconfig3 in a vm
then i did this
root@server:~# getent passwd | cut -d: -f1 | perl -e'while(<>){chomp;$l = `cront
ab -u $_ -l 2>/dev/null`;print "$_\n$l\n" if $l}'

this listed the cronjob i was missing ....
* * * * * /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconf
ig/cron.log

so i did on the server where i was missing the cronjob like this
did crontab -e enter
then put in that file * * * * * /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconf
ig/cron.log saved it with ctrl+X
and walla it worked :)

DontSpaz 9th June 2013 07:21

Curious as why did you just run the update.php script and let it recreate the cronjob?


All times are GMT +2. The time now is 14:02.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.