Browse Source

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.
OPENBSD_5_9
sthen 8 years ago
parent
commit
72f79ae7cb
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      src/etc/rc.d/bgpd

+ 1
- 3
src/etc/rc.d/bgpd View File

@ -1,13 +1,11 @@
#!/bin/sh #!/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" daemon="/usr/sbin/bgpd"
. /etc/rc.d/rc.subr . /etc/rc.d/rc.subr
pexp="bgpd: parent.*"
# child will not return a config parsing error to the parent # child will not return a config parsing error to the parent
rc_pre() { rc_pre() {
${daemon} -n ${daemon_flags} ${daemon} -n ${daemon_flags}


Loading…
Cancel
Save