rustit/mirror_runit/runit-2.1.2/doc/runsvchdir.8.html
2024-03-24 23:51:57 +00:00

52 lines
1.8 KiB
HTML

<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>