blob: b2f551efdc9960f8e1835b2753e83df834ce18ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
#
# $NetBSD: smbd.sh,v 1.3 2001/08/17 16:08:21 jlam Exp $
#
# PROVIDE: smbd
# REQUIRE: nmbd
name="smbd"
command="@PREFIX@/sbin/${name}"
command_args="-D" # _must_ start as daemon from rc.d;
# add more flags through ${smbd_flags}
if [ ! -d /etc/rc.d ]
then
@ECHO@ -n ' ${name}'
exec ${command} ${smbd_flags} ${command_args}
fi
. /etc/rc.subr
pidfile="/var/run/samba/${name}.pid"
required_files="/etc/samba/smb.conf"
load_rc_config $name
run_rc_command "$1"
|