File: bcron-update.8

package info (click to toggle)
bcron 0.11-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 728 kB
  • sloc: sh: 3,099; ansic: 2,416; makefile: 28
file content (60 lines) | stat: -rw-r--r-- 1,644 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.TH bcron-update 8
.SH NAME
bcron-update \- Update system crontabs.
.SH SYNOPSIS
.B bcron-update
.I path
[
.I path ...
]
.SH DESCRIPTION
.B bcron-update
polls the named files or directories periodically to see if there are
any new, changed, or removed files.  When it detects changes, it mirrors
those changes into the crontab spool directory.
.B bcron-update
runs as root in order to be able to read system files that would
potentially be unreadable otherwise.
.P
On Debian, if
.I path
is a directory,
.B bcron-update
skips files in this directory with names that do not solely consist of
lower- and uppercase letters ('a'-'z', 'A'-'Z'), digits ('0'-'9'),
underscores ('_'), and hyphens ('-').
.SH EXAMPLES
To mirror modern vixie-cron's behavior, use:
.EX
bcron-update /etc/crontab /etc/cron.d
.EE
.SH ENVIRONMENT
.TP 5
.B BCRON_SPOOL
The spool directory for bcron.  Defaults to
.IR /var/spool/cron .
.TP 5
.B BCRON_USER
After writing files and before moving them into their final location,
.B bcron-update
changes the ownership of the file to this user so that
.B bcron-sched
can read them.
.SH SEE ALSO
bcron-sched(8)
.SH DIAGNOSTICS
.B bcron-update
outputs three different kinds of messages about actions it is taking.
.TP 5
.I Rescanning /etc/cron.d
The named directory has been modified, and will be scanned to determine
what files have been added or deleted.
.TP 5
.I -/etc/cron.d/oldfile
The named file no longer exists and will be removed from the spool.
.TP 5
.I +/etc/cron.d/newfile
The named file was either created or modified since the last scan, and
will be copied into the spool.
.SH AUTHOR
Bruce Guenter <bruce@untroubled.org>