2012-01-01 11:16:24 -05:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2012-04-06 07:59:48 -04:00
|
|
|
# $OpenBSD: svscan.rc,v 1.3 2012/04/06 11:59:48 sthen Exp $
|
2012-01-01 11:16:24 -05:00
|
|
|
|
|
|
|
daemon="${TRUEPREFIX}/bin/svscan"
|
|
|
|
daemon_flags="/service/"
|
|
|
|
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
|
|
|
|
rc_bg=YES
|
|
|
|
rc_reload=NO
|
|
|
|
|
2012-04-06 07:59:48 -04:00
|
|
|
rc_post() {
|
2012-04-06 07:47:54 -04:00
|
|
|
sleep 1
|
|
|
|
${TRUEPREFIX}/bin/svc -X ${daemon_flags}/*
|
|
|
|
${TRUEPREFIX}/bin/svc -X ${daemon_flags}/*/log
|
|
|
|
}
|
|
|
|
|
2012-01-01 11:16:24 -05:00
|
|
|
rc_cmd $1
|