summary refs log tree commit diff
path: root/spawn.8
blob: f5ecc6ca055d2c62bf5c8b149fb07df4771297f3 (plain) (blame)
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
96
97
.Dd August 13, 2020
.Dt SPAWN 8
.Os
.
.Sh NAME
.Nm spawn
.Nd spawnd control
.
.Sh SYNOPSIS
.Nm
.Op Fl c Ar control
.Cm start|stop|restart|status Ns | Ns Ar signal
.Ar service ...
.
.Sh DESCRIPTION
The
.Nm
utility controls
the services managed by the
.Xr spawnd 8
daemon.
It does so by writing
the remainder of its command line
to a named pipe.
.
.Pp
Communication with
.Xr spawnd 8
is unidirectional.
The daemon logs any feedback
with syslog.
.
.Pp
The arguments are as follows:
.Bl -tag -width Ds
.It Fl c Ar control
Set the path of the named pipe.
.
.It Cm start
Start any matching services
which are not already started.
.
.It Cm stop
Stop any matching services
which are not already stopped.
Processes are stopped using the
.Dv TERM
signal.
.
.It Cm restart
Restart any matching services.
Started services will first be stopped,
then stopped services will be started.
.
.It Cm status
Log the current status of any matching services.
.
.It Ar signal
Send the named signal
to the processes of any matching started services.
.
.It Ar service ...
The list of services to operate on.
Service names can include
the shell-style pattern operators
.Sy *?[] .
Be sure to quote service name patterns
so they are not interpreted by the shell.
.El
.
.Sh ENVIRONMENT
.Bl -tag -width Ds
.It Ev SPAWND_PIPE
The path of the named pipe.
The
.Fl c
flag overrides this variable.
.El
.
.Sh FILES
.Bl -tag -width Ds
.It Pa /var/run/spawnd.pipe
The default path of the named pipe.
.El
.
.Sh EXAMPLES
.Bd -literal
spawn start pounce/freenode
spawn status '*'
spawn USR1 'pounce/*'
.Ed
.
.Sh SEE ALSO
.Xr spawnd 8
.
.Sh AUTHORS
.An June Bug Aq Mt june@causal.agency
t-pink/commit/tests/t0109-gitconfig.sh?h=1.4.1&id=7966fd9b8e32562196b52abd32f6ba1e15228b81&follow=1'>t0109: "function" is a bash-ismJohn Keeping 2013-05-13New mailing list.Jason A. Donenfeld 2013-04-30ui-snapshot: do not access $HOMEJason A. Donenfeld 2013-04-27t0001: validate Git -rcN version numbers correctlyJohn Keeping 2013-04-27git: update to 1.8.2.2John Keeping 2013-04-17scan-tree: fix regression in section-from-path=-1John Keeping 2013-04-15t0001: ignore ".dirty" suffix on Git versionJohn Keeping 2013-04-15tests: set TEST_OUTPUT_DIRECTORY to the CGit test directoryJohn Keeping 2013-04-15t0109: test more URLsJohn Keeping 2013-04-10cgitrc.5.txt: Specify when scan-path must be defined before.Jason A. Donenfeld 2013-04-10ui-snapshot.c: Prepend "V" when guessing ref namesLukas Fleischer 2013-04-10t0107: Skip ZIP tests if unzip(1) isn't availableLukas Fleischer 2013-04-10tests/: Do not use `sed -i`Lukas Fleischer 2013-04-10Add branch-sort and repo.branch-sort options.Jason A. Donenfeld 2013-04-10t0109: chain operations with &&John Keeping 2013-04-10cgit.c: Do not restore unset environment variablesLukas Fleischer 2013-04-09t0107: Use `tar -z` for gzip'ed archivesLukas Fleischer