diff options
Diffstat (limited to 'net/samba/files/smbd.sh')
-rwxr-xr-x | net/samba/files/smbd.sh | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/net/samba/files/smbd.sh b/net/samba/files/smbd.sh index 36a9f83e8df..a253a8292a3 100755 --- a/net/samba/files/smbd.sh +++ b/net/samba/files/smbd.sh @@ -1,26 +1,21 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: smbd.sh,v 1.10 2004/01/11 02:26:31 jlam Exp $ +# $NetBSD: smbd.sh,v 1.11 2005/11/14 08:05:27 jlam Exp $ # # PROVIDE: smbd -# REQUIRE: DAEMON +# REQUIRE: nmbd -if [ -f /etc/rc.subr ]; then - . /etc/rc.subr -fi +. /etc/rc.subr name="smbd" rcvar=$name command="@PREFIX@/sbin/${name}" +required_vars="nmbd" required_files="@SAMBA_ETCDIR@/smb.conf" extra_commands="reload" command_args="-D" # _must_ start as daemon from rc.d; # add more flags through ${${name}_flags} -if [ -f /etc/rc.subr ]; then - load_rc_config $name - run_rc_command "$1" -else - @ECHO@ -n " ${name}" - ${command} ${smbd_flags} ${command_args} -fi +load_rc_config $name +load_rc_config_var nmbd nmbd +run_rc_command "$1" |