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