diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-01-30 12:14:09 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-01-30 12:14:09 +0000 |
commit | 6826fd225532abf68b46ad4ec785cbab2af1f71d (patch) | |
tree | a2cf7caa2e490d4c040721ca825ad1207b5f63cd /usr.sbin/rcctl | |
parent | bebe9b404d63f0751e86627920c57e3de705b839 (diff) |
Explain how to run multiple copies of the same daemon;
triggered by a frequently asked question by Paolo Aglialoro on misc@;
using snmpd(8) on inet6(4) as an example suggested by sthen@;
tweaks and OK ajacoutot@.
Diffstat (limited to 'usr.sbin/rcctl')
-rw-r--r-- | usr.sbin/rcctl/rcctl.8 | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/usr.sbin/rcctl/rcctl.8 b/usr.sbin/rcctl/rcctl.8 index f06c2b77489..683b8301e1c 100644 --- a/usr.sbin/rcctl/rcctl.8 +++ b/usr.sbin/rcctl/rcctl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rcctl.8,v 1.28 2016/01/29 23:53:08 jmc Exp $ +.\" $OpenBSD: rcctl.8,v 1.29 2016/01/30 12:14:08 schwarze Exp $ .\" .\" Copyright (c) 2014 Antoine Jacoutot <ajacoutot@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 29 2016 $ +.Dd $Mdocdate: January 30 2016 $ .Dt RCCTL 8 .Os .Sh NAME @@ -194,6 +194,17 @@ apmd_user=root # echo $? 0 .Ed +.Pp +The recommended way to run a second copy of a given daemon for a +different purpose is to create a symbolic link to its +.Xr rc.d 8 +control script: +.Bd -literal -offset indent +# ln -s /etc/rc.d/snmpd /etc/rc.d/snmpd6 +# rcctl set snmpd6 flags -D addr=2001:db8::1234 +# rcctl set snmpd6 status on +# rcctl start snmpd6 +.Ed .Sh SEE ALSO .Xr rc.conf.local 8 , .Xr rc.d 8 |