diff options
Diffstat (limited to 'net/ja-samba/files/smbd.sh')
-rwxr-xr-x | net/ja-samba/files/smbd.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net/ja-samba/files/smbd.sh b/net/ja-samba/files/smbd.sh new file mode 100755 index 00000000000..0927fa7aa3a --- /dev/null +++ b/net/ja-samba/files/smbd.sh @@ -0,0 +1,28 @@ +#!/bin/sh +# +# $NetBSD: smbd.sh,v 1.1.1.1 2002/06/25 15:31:34 taca Exp $ +# +# PROVIDE: smbd +# REQUIRE: DAEMON + +if [ -f /etc/rc.subr ] +then + . /etc/rc.subr +fi + +name="smbd" +rcvar=$name +command="@PREFIX@/sbin/${name}" +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 |