|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
default crontab
Maybe I am missing something. Openbsd's default crontab is supposed to be in /etc according to docs. There is no crontab in /etc by default. There is a copy of the standard system crontab file in /usr/etc.
I can install that one however, cron seems to be executing newsyslog periodically (despite the fact that I see no crontabs for root). Should the default crontab be installed in /etc ? |
|
|||
I'm sorry. I mean cron. /etc/crontab is the system crontab file. There is a copy if it
in /usr/etc which seems to be correct. My question is should this be installed as a root cron process or does the system have other scripts that handle housekeeping for the system..ie like log rotation (newsyslog), etc.? |
|
|||
Take a look at root's settings at /var/cron/tabs/root.
|
|
|||
I agree with jggimi. Everything mentioned matches FreeBSD, not OpenBSD:
http://tim.oreilly.com/pub/a/bsd/200...SD_Basics.html |
|
|||
re output
Quote:
troot@corky31.fbroce.local:/usr/src/...ile/GENERIC.MP |
|
|||
re root file
I have added the default crontab to root. It was empty before that.
The implication is that this runs by default however by default root shows no crontab files. I installed this as the root crontab file however, I am wondering if it runs silently in the background? ------------------------------------------------------------------------------- # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.SYHFZW1Oui installed on Sun Sep 12 10:48:37 2010) # (Cron version V5.0) # $OpenBSD: crontab,v 1.18 2009/05/09 17:15:49 schwarze Exp $ # # /var/cron/tabs/root - root's crontab # SHELL=/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin HOME=/var/log # #minute hour mday month wday command # # sendmail clientmqueue runner #*/30 * * * * /usr/sbin/sendmail -L sm-msp-queue -Ac -q # # rotate log files every hour, if necessary 0 * * * * /usr/bin/newsyslog # send log file notifications, if necessary #1-59 * * * * /usr/bin/newsyslog -m # # do daily/weekly/monthly maintenance 30 1 * * * /bin/sh /etc/daily 30 3 * * 6 /bin/sh /etc/weekly 30 5 1 * * /bin/sh /etc/monthly #0 * * * * /usr/libexec/spamd-setup |
|
|||
re /usr/etc
Thanks for setting me straight!
There is no other user or admin of this system. I think I know what happened. I must have updated the source with cvs and specified the wrong path and created the /usr/etc/ instead of /usr/src/etc. I have another identical server and it does not have the /usr/etc directory. Sorry for all the confusion. I still don't think either of the systems enabled the default crontab file in /etc as a root crontab. Should that be part of the standard setup? |
|
|||
Yes, it is included in the default installation.
|
|
||||
To highlight what ocicat has stated -- if you look at the etc47.tgz fileset used during installation, you will see version 1.18 of root's crontab file in that tarball, in var/cron/tabs/root.
You might have done some damage to your system, if the file was not there. |
|
|||
This looks to be quite the mess, I'd urge you to reinstall cleanly.. most definitely a support nightmare.
|
|
|||
re 4.7
I did an upgrade from 4.6. It's possible that I mishandled mergemaster. Looks like it was my error in any case.
The system really is behaving well. I just noticed that some of the logs were growing more than I thought they should and realized that the root crontab was not installed. Last edited by fbroce; 14th September 2010 at 05:15 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Default terminal color | disappearedng | FreeBSD General | 5 | 21st February 2012 01:28 AM |
Security by default | bettyblue | OpenBSD Security | 4 | 30th May 2010 08:30 PM |
Default message coloration | cyril | OpenBSD Installation and Upgrading | 5 | 6th June 2009 02:13 PM |
Crontab won't run script | Petrocelli08 | FreeBSD General | 4 | 7th March 2009 04:19 AM |
Crontab not working | beandip | FreeBSD General | 6 | 6th August 2008 08:33 PM |