From 72f79ae7cb91b6401d922cf85a543c1b00c04c96 Mon Sep 17 00:00:00 2001 From: sthen <> Date: Sun, 7 Feb 2016 20:56:48 +0000 Subject: [PATCH] Remove setproctitle() for the parent process. Because rc.d(8) uses process titles (including flags) to distinguish between daemons, this makes it possible to manage multiple copies of a daemon using the normal infrastructure by symlinking rc.d scripts to a new name. ok jung@ ajacoutot@, missed in previous commit, problem reported by mxb/alumni/chalmers/se. --- src/etc/rc.d/bgpd | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/etc/rc.d/bgpd b/src/etc/rc.d/bgpd index cb78ce58..dd0c956c 100644 --- a/src/etc/rc.d/bgpd +++ b/src/etc/rc.d/bgpd @@ -1,13 +1,11 @@ #!/bin/sh # -# $OpenBSD: bgpd,v 1.2 2015/12/19 13:45:12 ajacoutot Exp $ +# $OpenBSD: bgpd,v 1.3 2016/02/07 20:56:48 sthen Exp $ daemon="/usr/sbin/bgpd" . /etc/rc.d/rc.subr -pexp="bgpd: parent.*" - # child will not return a config parsing error to the parent rc_pre() { ${daemon} -n ${daemon_flags}