daemon scripts and bump subpackages that contain the *.rc scripts. discussed with and OK aja@ OK tb
24 lines
408 B
Bash
24 lines
408 B
Bash
#!/bin/ksh
|
|
#
|
|
# $OpenBSD: prosody.rc,v 1.4 2018/01/11 19:27:07 rpe Exp $
|
|
|
|
daemon="${TRUEPREFIX}/sbin/prosodyctl"
|
|
daemon_flags="start"
|
|
daemon_user="_prosody"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
rc_reload=NO
|
|
rc_usercheck=NO
|
|
|
|
rc_check() {
|
|
# return 1 is needed: prosodyctl returns a higher error code on failure
|
|
${TRUEPREFIX}/sbin/prosodyctl status || return 1
|
|
}
|
|
|
|
rc_stop() {
|
|
${TRUEPREFIX}/sbin/prosodyctl stop
|
|
}
|
|
|
|
rc_cmd $1
|