openbsd-ports/net/samba/pkg/winbindd.rc
ajacoutot 242a7d4483 Add rc scripts.
While here, fix the LOCALBASE vs PREFIX and SYSCONFDIR vs /etc mess.

ok robert@
2011-01-17 17:58:03 +00:00

25 lines
385 B
Bash

#!/bin/sh
#
# $OpenBSD: winbindd.rc,v 1.1 2011/01/17 17:58:04 ajacoutot Exp $
daemon="/usr/local/libexec/winbindd"
daemon_flags="-D"
. /etc/rc.d/rc.subr
smbcontrol="${TRUEPREFIX}/bin/smbcontrol"
rc_check() {
${smbcontrol} winbindd ping >/dev/null 2>&1
}
rc_reload() {
${smbcontrol} winbindd reload-config
}
rc_stop() {
${smbcontrol} winbindd shutdown 2>/dev/null
}
rc_cmd $1