Difference between revisions of "Talk:Crond"

From WebOS Internals
Jump to navigation Jump to search
(→‎WebOS 1.3.1: This is old news, I got it working....)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
Is /opt/bin/crontab -e the original cron file that we should not be editing? If so does the package install of of cron need to be updated?
 
Is /opt/bin/crontab -e the original cron file that we should not be editing? If so does the package install of of cron need to be updated?
 +
 +
== ==
  
 
Keep these things in mind when running the cron daemon that ships with the Pre.
 
Keep these things in mind when running the cron daemon that ships with the Pre.
  
1. The daemon reads files in /etc/cron/crontabs/
+
 
2. crontab -e edits files in /var/spool/cron/crontabs/
+
 
3. When crontab -e does an edit, it makes a temporary copy of the file, which is what the user actually edits, verifies the changes, and then replaces the existing file.
+
* The daemon reads files in /etc/cron/crontabs/
4. Changes should be made using a regular editor to /etc/cron/crontabs/*
+
* crontab -e edits files in /var/spool/cron/crontabs/
 +
* When crontab -e does an edit, it makes a temporary copy of the file, which is what the user actually edits, verifies the changes, and then replaces the existing file.
 +
* Changes should be made using a regular editor to /etc/cron/crontabs/*
 +
 
 +
 
 +
 
 +
== Alternate event.d config ==
 +
 
 +
I could only get crond to run on startup with these parameters in mod-crond...
 +
 
 +
start on stopped finish<br>
 +
stop on runlevel [!2]
 +
 
 +
But then it has the issues with stopping when going to sleep.
 +
 
 +
--[[User:Xorg|Xorg]] 18:57, 16 December 2009 (UTC)
 +
 
 +
== Cron log file does not rotate. ==
 +
 
 +
Just a heads up that the cron log file is not rotated, if filled up my /var volume one day and I had to manually purge it.  I intend to look into getting the cron log added to the normal log file rotations, unless someone beats me to it... --[[User:Dolio|Dolio]] 05:38, 5 July 2010 (UTC)

Latest revision as of 06:39, 5 July 2010

Is /opt/bin/crontab -e the original cron file that we should not be editing? If so does the package install of of cron need to be updated?

Keep these things in mind when running the cron daemon that ships with the Pre.


  • The daemon reads files in /etc/cron/crontabs/
  • crontab -e edits files in /var/spool/cron/crontabs/
  • When crontab -e does an edit, it makes a temporary copy of the file, which is what the user actually edits, verifies the changes, and then replaces the existing file.
  • Changes should be made using a regular editor to /etc/cron/crontabs/*


Alternate event.d config

I could only get crond to run on startup with these parameters in mod-crond...

start on stopped finish
stop on runlevel [!2]

But then it has the issues with stopping when going to sleep.

--Xorg 18:57, 16 December 2009 (UTC)

Cron log file does not rotate.

Just a heads up that the cron log file is not rotated, if filled up my /var volume one day and I had to manually purge it. I intend to look into getting the cron log added to the normal log file rotations, unless someone beats me to it... --Dolio 05:38, 5 July 2010 (UTC)