In freedt, change svscan's rc script to shut down daemons started by svscan
when "svscan stop" is run. From Marcus Merighi with feedback from me.
This commit is contained in:
parent
702891f7d2
commit
b10b785f50
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.10 2012/01/01 16:16:24 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.11 2012/04/06 11:47:54 sthen Exp $
|
||||
|
||||
COMMENT= reimplementation of Dan Bernstein's daemontools
|
||||
COMMENT= reimplementation of Dan Bernstein's daemontools #'
|
||||
|
||||
DISTNAME= freedt-0.22
|
||||
REVISION= 0
|
||||
CATEGORIES= sysutils
|
||||
|
||||
HOMEPAGE= http://offog.org/code/freedt.html
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: svscan.rc,v 1.1 2012/01/01 16:16:24 sthen Exp $
|
||||
# $OpenBSD: svscan.rc,v 1.2 2012/04/06 11:47:54 sthen Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/bin/svscan"
|
||||
daemon_flags="/service/"
|
||||
@ -10,4 +10,11 @@ daemon_flags="/service/"
|
||||
rc_bg=YES
|
||||
rc_reload=NO
|
||||
|
||||
rc_stop() {
|
||||
pkill -f "^${pexp}"
|
||||
sleep 1
|
||||
${TRUEPREFIX}/bin/svc -X ${daemon_flags}/*
|
||||
${TRUEPREFIX}/bin/svc -X ${daemon_flags}/*/log
|
||||
}
|
||||
|
||||
rc_cmd $1
|
||||
|
Loading…
Reference in New Issue
Block a user