| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This adds a new "-s" flag to the command field which indicates that
only a single instance of the job should run concurrenty.
OK beck@ job@ deraadt@
|
|
|
|
|
|
| |
perform the fclose() in process_crontab(). Previously we were
closing the crontab fd twice--once in load_user() via fclose() and
once in process_crontab(). OK tb@
|
|
|
|
|
|
|
|
| |
"(username) WHAT (details)". Logs due to normal operation (e.g.
crontab operations or running commands) are logged at LOG_INFO like
before. Actual errors are logged at LOG_ERR, less important things
are logged at LOG_WARNING OR LOG_NOTICE. Also ignore SIGHUP now
that there is no log file to reopen.
|
|
|
|
|
|
|
|
| |
chdir(2) to the cron dir and cron(8) now changes to / via daemon(3).
We no longer try to create/chmod the spool directories as they
should be set correctly at install time. The setegid(crontab)
has been moved to open_socket() so it is closer to the chmod(2)
call that needs it. OK deraadt@ tedu@
|
| |
|
|
|
|
| |
some potential memory leaks in error paths. OK guenther@
|
|
|
|
|
| |
outside their respective .c files. Also remove some unused defines.
OK jung@
|
| |
|
|
|
|
| |
move them there.
|
|
|
|
| |
OK nicm@
|
|
|
|
|
| |
Use env_find() in both env_get() and env_set() to find a var in envp.
Remove now-unused strcmp_until() function.
|
| |
|
|
|
|
|
|
| |
just to keep track of a single pid. Return it to the caller and make it
their problem.
ok deraadt millert
|
|
|
|
|
|
|
| |
we can use struct timespec throughout and avoid any conversion
issues which might cause jobs to fire prematurely. Secondly, it
eliminates a race condition that could delay us taking action on
SIGCHLD and SIGHUP. OK deraadt@ okan@ ratchov@
|
|
|
|
|
|
|
|
|
|
| |
I think the level of debug code in cron is excessive for a program
that has reached feature complete. If cron needs to provide more
information to the user about its operational status, I think syslog
would be more appropriate. (The debug flags also disable forking
into the background, so they aren't even that useful for debugging a
live system.)
ok deraadt millert
|
|
|
|
|
| |
of the harder programs to adapt, so let me know if problems happen.
tested by guenther, gilles, chl, others
|
|
|
|
|
|
| |
from tobias@
ok mglocker@ tobias@
|
| |
|
|
|
|
|
| |
Remove unused macros Skip_Line and MkLower
Remove trailing whitespace
|
| |
|
|
|
|
| |
The at(1) code is now more tightly integrated into the cron codebase.
|
|
|
|
|
|
| |
the crontab command; for POSIX compliance. Create an empty cron.deny
file to allow any user to run crontab:
install -c -o root -g crontab -m 660 /dev/null /var/cron/cron.deny
|
|
|
|
|
|
|
|
|
|
|
|
| |
long-standing annoyance that atrun's granularity is 10 minutes.
Most at jobs run with a 1 minute granularity. Jobs submitted via
"at now" or "batch" will run immediately. Includes a rewritten
cron(8) man page. at(1) will be integrated more closely into
cron at a future date.
Upgrading notes:
the atrun job in root's crontab should be removed.
the /var/at/spool directory is no longer used
|
|
|
|
|
|
|
|
|
|
|
| |
o ANSI function headers
o return (foo) not return foo
o add -oi to sendmail flags
o update email address in man pages
o make some strings const
o completely remove globbing cruft from popen.c
o whitespace changes
o add DOW_STAR to flags for "monthly", "weekly", and "daily" cron entries
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These changes were modelled after the Owl version of vixie-cron,
but developed independently.
Our crontab used to send cron SIGUSR1 to tell cron to reread the
spool dir. Now that crontab is not setuid root this doesn't work.
Instead, crontab pokes cron via a Unix domain socket located in the
tabs dir.
Please note, after these changes, the owner on user crontab files
will have to be changed manually from root to the uid of the
corresponding user for crontab to be usable. cron itself will accept
tab files owned by either root or the user.
Also, any /var/cron/{allow,deny} files must be readable by group crontab.
|
| |
|
|
|
|
|
| |
Save the GMT offset in a global so cron_sleep can use it. This means
the offset can only change in set_time() which is really what we want.
|
|
|
|
|
|
|
| |
(since time() does not change during a DST switch). This makes cron
correctly detect DST changes. It does not fix the problem of wildcard
jobs running multiple times. Also, don't rely on tm_gmtoff since that
is non-standard (but use it when we have it).
|
|
I also fixed the signal handlers while I was at it.
|