Skip to content

Commit a2b162d

Browse files
committed
sv,runsv,runsvchdir: change the default service directory.
Upstream defaulted to /service as default, we use /var/service. This patch was inspired by https://salsa.debian.org/debian/runit/-/blob/77a49befd7c1a08bfe0613454e540562529811fa/debian/patches/0001-default-directory-for-services-on-Debian-is-etc-servi.diff but the change in sv.c was also performed in the build template for runit in void-packages.
1 parent 3adf33d commit a2b162d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

man/runsv.8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ This command is ignored if it is given to
157157
.IR service /log/supervise/control.
158158
.P
159159
Example: to send a TERM signal to the socklog-unix service, either do
160-
# sv term /service/socklog-unix
160+
# sv term /var/service/socklog-unix
161161
or
162-
# printf t >/service/socklog-unix/supervise/control
162+
# printf t >/var/service/socklog-unix/supervise/control
163163
.P
164164
.BR printf (1)
165165
usually blocks if no

man/runsvchdir.8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ with a symlink pointing to
2727
.IR dir .
2828
.P
2929
Normally
30-
.I /service
30+
.I /var/service
3131
is a symlink to
3232
.IR current ,
3333
and
3434
.BR runsvdir (8)
3535
is running
36-
.IR /service/ .
36+
.IR /var/service/ .
3737
.SH EXIT CODES
3838
.B runsvchdir
3939
prints an error message and exits 111 on error.

man/sv.8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If
3030
.I service
3131
doesn't start with a dot or slash and doesn't end with a slash, it is
3232
searched in the default services directory
33-
.IR /service/ ,
33+
.IR /var/service/ ,
3434
otherwise relative to the current directory.
3535
.P
3636
.I command
@@ -232,7 +232,7 @@ This option implies
232232
.TP
233233
.B SVDIR
234234
The environment variable $SVDIR overrides the default services directory
235-
.IR /service/ .
235+
.IR /var/service/ .
236236
.TP
237237
.B SVWAIT
238238
The environment variable $SVWAIT overrides the default 7 seconds to wait

src/sv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
char *progname;
3333
char *action;
3434
char *acts;
35-
char *varservice ="/service/";
35+
char *varservice ="/var/service/";
3636
char **service;
3737
char **servicex;
3838
unsigned int services;

0 commit comments

Comments
 (0)