-
Notifications
You must be signed in to change notification settings - Fork 39
/
timer.8gx
95 lines (95 loc) · 3.09 KB
/
timer.8gx
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.\" SPDX-License-Identifier: CC-BY-SA-4.0 or-later
.\" SPDX-FileCopyrightText: 2020-2021 grommunio GmbH
.TH timer 8gx "" "Gromox" "Gromox admin reference"
.SH Name
\fBtimer\fP \(em deferred command executor
.SH Synopsis
\fBtimer\fP [\fB\-c\fP \fIconfig\fP]
.SH Description
The timer daemon can be used to schedule commands to be executed once, at a
particular time in the future. It is similar to the at(1) command and its
associated daemon, atd.
.PP
timer(8gx) generally receives commands from timer_agent(4gx).
.SH Options
.TP
\fB\-c\fP \fIconfig\fP
Read configuration directives from the given file. If this option is not
specified, /etc/gromox/timer.cfg will be read if it exists.
.TP
\fB\-\-version\fP
Output version information and exit.
.TP
\fB\-?\fP
Display option summary.
.PP
All time-based command-line options and configuration file directives are
subject to the syntax described in gromox(7), section "Duration
specifications".
.SH Files
.IP \(bu 4
/var/lib/gromox/timer.txt: This file is used to save the state of timer(8gx)
and persist them across restarts.
.SH Configuration directives
The usual config file location is /etc/gromox/timer.cfg.
.TP
\fBconfig_file_path\fP
Colon-separated list of directories which will be scanned when locating further
configuration files, especially those used by plugin instances.
.br
Default: \fI/etc/gromox/timer:/etc/gromox\fP
.TP
\fBrunning_identity\fP
An unprivileged user account to switch the process to after startup.
To inhibit the switch, assign the empty value.
.br
Default: \fIgromox\fP
.TP
\fBtimer_hosts_allow\fP
A space-separated list of individual IPv6 or v4-mapped IPv6 host addresses that
are allowed to converse with the timer service. No networks and no CIDR
notations are permitted. This option deprecates the /etc/gromox/timer_acl.txt
file used in earlier versions.
.br
Default: \fI::1\fP
.TP
\fBtimer_listen_ip\fP
An IPv6 address (or v4-mapped address) for exposing the timer service on.
.br
Default: \fI::1\fP
.TP
\fBtimer_listen_port\fP
The TCP port number for exposing the timer service on.
.br
Default: \fI6666\fP
.TP
\fBtimer_log_file\fP
Target for log messages here. Special values: "\fI-\fP" (stderr/syslog
depending on parent PID) or "\fIsyslog\fP" are recognized.
.br
Default: \fI-\fP (auto)
.TP
\fBtimer_log_level\fP
Maximum verbosity of logging. 1=crit, 2=error, 3=warn, 4=notice, 5=info, 6=debug.
.br
Default: \fI4\fP (notice)
.TP
\fBtimer_state_path\fP
Default: \fI/var/lib/gromox/timer.txt\fP
.TP
\fBtimer_threads_num\fP
The minimum number of client processing threads to keep around.
.br
Default: \fI50\fP
.SH Timer protocol
The timer service is exposed as a line-based text protocol. Upon connection,
the event server gratitiously writes "OK", following which the server will wait
for timer commands, and execute them synchronously.
.PP
The command "ADD <seconds> <command>" installs a new timer for the given command
to be executed in that many seconds from now. The server will respond with
"FALSE 2", "FALSE 3", or respond with the timer ID as "TRUE <id>".
.PP
The command "CANCEL <id>" revokes the timer with the chosen ID.
.SH See also
\fBgromox\fP(7), \fBtimer_agent\fP(4gx)