summaryrefslogtreecommitdiff
path: root/net/ja-samba/files/nmbd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/ja-samba/files/nmbd.sh')
-rwxr-xr-xnet/ja-samba/files/nmbd.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/net/ja-samba/files/nmbd.sh b/net/ja-samba/files/nmbd.sh
new file mode 100755
index 00000000000..3106e14d5d1
--- /dev/null
+++ b/net/ja-samba/files/nmbd.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# $NetBSD: nmbd.sh,v 1.1.1.1 2002/06/25 15:31:34 taca Exp $
+#
+# PROVIDE: nmbd
+# REQUIRE: DAEMON
+
+if [ -f /etc/rc.subr ]
+then
+ . /etc/rc.subr
+fi
+
+name="nmbd"
+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}
+
+reload_cmd=":" # avoid dumping debug output on SIGHUP
+
+if [ -f /etc/rc.subr ]
+then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ @ECHO@ -n ' ${name}'
+ ${command} ${nmbd_flags} ${command_args}
+fi