openbsd-ports/net/samba/pkg/smbd.rc
2012-08-04 15:28:14 +00:00

26 lines
342 B
Bash

#!/bin/sh
#
# $OpenBSD: smbd.rc,v 1.6 2012/08/04 15:28:14 ajacoutot Exp $
smbcontrol="${TRUEPREFIX}/bin/smbcontrol"
daemon="${TRUEPREFIX}/libexec/smbd -D"
. /etc/rc.d/rc.subr
rc_usercheck=NO
rc_check() {
${smbcontrol} smbd ping
}
rc_reload() {
${smbcontrol} smbd reload-config
}
rc_stop() {
${smbcontrol} smbd shutdown
}
rc_cmd $1