runsvchdir.8 (939B)
1 .TH runsvchdir 8 2 .SH NAME 3 runsvchdir \- change services directory of runsvdir(8) 4 .SH SYNOPSIS 5 .B runsvchdir 6 .I dir 7 .SH DESCRIPTION 8 .I dir 9 is a services directory for the use with 10 .BR runsvdir (8). 11 If 12 .I dir 13 does not start with a slash, it is searched in /etc/runit/runsvdir/. 14 .I dir 15 must not start with a dot. 16 .P 17 .B runsvchdir 18 switches to the directory 19 .IR /etc/runit/runsvdir/ , 20 copies 21 .I current 22 to 23 .IR previous , 24 and replaces 25 .I current 26 with a symlink pointing to 27 .IR dir . 28 .P 29 Normally 30 .I /var/service 31 is a symlink to 32 .IR current , 33 and 34 .BR runsvdir (8) 35 is running 36 .IR /var/service/ . 37 .SH EXIT CODES 38 .B runsvchdir 39 prints an error message and exits 111 on error. 40 .B runsvchdir 41 exits 0 on success. 42 .SH FILES 43 /etc/runit/runsvdir/previous 44 /etc/runit/runsvdir/current 45 /etc/runit/runsvdir/current.new 46 .SH SEE ALSO 47 runsvdir(8), 48 runit(8), 49 runit-init(8), 50 sv(8), 51 runsv(8) 52 .P 53 http://smarden.org/runit/ 54 .SH AUTHOR 55 Gerrit Pape <pape@smarden.org>