HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   How to disable the shell cron jobs? (http://www.howtoforge.com/forums/showthread.php?t=1061)

raymov 31st October 2005 09:12

How to disable the shell cron jobs?
 
We are currently evaluating ISPConfig, but are not yet ready to go live on a production server. We stopped the services with:
/etc/rc.d/init.d/ispconfig_server stop
/etc/rc.d/init.d/ispconfig_tcpserver stop


However the scripts are still running, which is causing us the following grief:
1. mail_logs.php deleted our maillog
2. check_services.php reminds us every half an hour that httpd is not running.

According to Appendix 3 of the Admin manual, cron job scripts are located in the following directory:
/root/ispconfig/scripts/shell/

However the cron job does not appear in:
/etc/crontab or /etc/cron.daily/

Where can we terminate these "hidden cron jobs" from executing the shell scripts?

Thanks.

falko 31st October 2005 09:34

Quote:

Originally Posted by raymov
We are currently evaluating ISPConfig, but are not yet ready to go live on a production server. We stopped the services with:
/etc/rc.d/init.d/ispconfig_server stop
/etc/rc.d/init.d/ispconfig_tcpserver stop


However the scripts are still running, which is causing us the following grief:
1. mail_logs.php deleted our maillog
2. check_services.php reminds us every half an hour that httpd is not running.

According to Appendix 3 of the Admin manual, cron job scripts are located in the following directory:
/root/ispconfig/scripts/shell/

However the cron job does not appear in:
/etc/crontab or /etc/cron.daily/

Where can we terminate these "hidden cron jobs" from executing the shell scripts?

Thanks.

You can edit your cron jobs by running
Code:

crontab -e
as root.

till 31st October 2005 10:16

Quote:

Originally Posted by raymov
1. mail_logs.php deleted our maillog

If you check the checkbox "Safe log" under Management > Server > Settings on the mail tab a copy of your maillog will be saved.

raymov 1st November 2005 04:43

Thanks for the replies,
The cron jobs now make sense:

Code:

crontab -l
30 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null
0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
0,30 * * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null
15 3,15 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/quota_msg.php &> /dev/null
40 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/traffic.php &> /dev/null

crontab -r

crontab -l
no crontab for root

It be great if the "Safe log" is enabled by default in future versions to be on the "safe side".


All times are GMT +2. The time now is 16:29.

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