23 lines
377 B
Bash
23 lines
377 B
Bash
#!/bin/sh
|
|
#
|
|
# $OpenBSD: buildslave.rc,v 1.2 2011/04/24 19:15:13 ajacoutot Exp $
|
|
|
|
daemon="${TRUEPREFIX}/bin/buildslave"
|
|
daemon_flags="${HOMEDIR}"
|
|
daemon_user="_buildslave"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
pexp="${MODPY_BIN} ${daemon} start ${daemon_flags}"
|
|
rc_reload=NO
|
|
|
|
rc_start() {
|
|
${rcexec} "${daemon} start ${daemon_flags}"
|
|
}
|
|
|
|
rc_stop() {
|
|
${daemon} stop ${daemon_flags}
|
|
}
|
|
|
|
rc_cmd $1
|