summary refs log tree commit diff
path: root/doc/runsvchdir.8.html
blob: ea3e585df9e15269ee46b0a738f89270bda13d2e (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



<html>
<head>
<title>runsvchdir(8) manual page</title>
</head>
<body bgcolor='white'>
<a href='http://smarden.org/pape/'>G. Pape</a><br><a href='index.html'>runit</A><hr><p>

<h2><a name='sect0'>Name</a></h2>
runsvchdir - change services directory of <i>runsvdir(8)</i> 
<h2><a name='sect1'>Synopsis</a></h2>
<b>runsvchdir</b>
<i>dir</i> 
<h2><a name='sect2'>Description</a></h2>
<i>dir</i> is a services directory for the use with <i><b>runsvdir</b>(8)</i>.
If <i>dir</i> does not start with a slash, it is searched in /etc/runit/runsvdir/.
<i>dir</i> must not start with a dot. <p>
<b>runsvchdir</b> switches to the directory <i>/etc/runit/runsvdir/</i>,
copies <i>current</i> to <i>previous</i>, and replaces <i>current</i> with a symlink pointing
to <i>dir</i>. <p>
Normally  <i>/service</i> is a symlink to <i>current</i>, and <i><b>runsvdir</b>(8)</i>
is running <i>/service/</i>. 
<h2><a name='sect3'>Exit Codes</a></h2>
<b>runsvchdir</b> prints an error message and
exits 111 on error. <b>runsvchdir</b> exits 0 on success. 
<h2><a name='sect4'>Files</a></h2>
 /etc/runit/runsvdir/previous<br>
  /etc/runit/runsvdir/current<br>
  /etc/runit/runsvdir/current.new<br>
 
<h2><a name='sect5'>See Also</a></h2>
<i>runsvdir(8)</i>, <i>runit(8)</i>, <i>runit-init(8)</i>, <i>sv(8)</i>, <i>runsv(8)</i> <p>
<i>http://smarden.org/runit/</i>

<h2><a name='sect6'>Author</a></h2>
Gerrit Pape &lt;pape@smarden.org&gt; <p>

<hr><p>
<a name='toc'><b>Table of Contents</b></a><p>
<ul>
<li><a name='toc0' href='#sect0'>Name</a></li>
<li><a name='toc1' href='#sect1'>Synopsis</a></li>
<li><a name='toc2' href='#sect2'>Description</a></li>
<li><a name='toc3' href='#sect3'>Exit Codes</a></li>
<li><a name='toc4' href='#sect4'>Files</a></li>
<li><a name='toc5' href='#sect5'>See Also</a></li>
<li><a name='toc6' href='#sect6'>Author</a></li>
</ul>
</body>
</html>