daemon scripts and bump subpackages that contain the *.rc scripts. discussed with and OK aja@ OK tb
26 lines
334 B
Bash
26 lines
334 B
Bash
#!/bin/ksh
|
|
#
|
|
# $OpenBSD: smbd.rc,v 1.8 2018/01/11 19:27:08 rpe Exp $
|
|
|
|
smbcontrol="${TRUEPREFIX}/bin/smbcontrol"
|
|
|
|
daemon="${TRUEPREFIX}/sbin/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
|