20 lines
304 B
Bash
Executable File
20 lines
304 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $OpenBSD: svscan.rc,v 1.3 2012/04/06 11:59:48 sthen Exp $
|
|
|
|
daemon="${TRUEPREFIX}/bin/svscan"
|
|
daemon_flags="/service/"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
rc_bg=YES
|
|
rc_reload=NO
|
|
|
|
rc_post() {
|
|
sleep 1
|
|
${TRUEPREFIX}/bin/svc -X ${daemon_flags}/*
|
|
${TRUEPREFIX}/bin/svc -X ${daemon_flags}/*/log
|
|
}
|
|
|
|
rc_cmd $1
|