pkgsrc/net/samba/files/nmbd.sh
2015-01-23 08:09:37 +00:00

22 lines
494 B
Bash
Executable file

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: nmbd.sh,v 1.11 2015/01/23 08:09:37 obache Exp $
#
# PROVIDE: nmbd
# REQUIRE: DAEMON
. /etc/rc.subr
name="nmbd"
rcvar=$name
command="@PREFIX@/sbin/${name}"
pidfile="@SAMBA_PIDDIR@/${name}.pid"
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
load_rc_config $name
run_rc_command "$1"