diff options
author | tron <tron@pkgsrc.org> | 2001-02-04 15:29:58 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2001-02-04 15:29:58 +0000 |
commit | 43db17d3e2e32e0c2ce0017d20342d2ae446a654 (patch) | |
tree | 5cd3ddcfd44c573de794b8a9fe03396ff1183360 /net/samba/files/smbd.sh | |
parent | b2c913eb65fc9850fba466262ca7f0e9423f2530 (diff) | |
download | pkgsrc-43db17d3e2e32e0c2ce0017d20342d2ae446a654.tar.gz |
Replace monolithic old style startup script with two new style startup
scripts which include backward compatibility for pre 1.5 systems.
Diffstat (limited to 'net/samba/files/smbd.sh')
-rwxr-xr-x | net/samba/files/smbd.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net/samba/files/smbd.sh b/net/samba/files/smbd.sh new file mode 100755 index 00000000000..d04b8a54068 --- /dev/null +++ b/net/samba/files/smbd.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# +# $NetBSD: smbd.sh,v 1.1 2001/02/04 15:29:59 tron Exp $ +# +# PROVIDE: smbd +# REQUIRE: nmbd + +name="smbd" +command="@PREFIX@/sbin/${name}" +command_args="-D" + +if [ ! -d /etc/rc.d ] +then + @ECHO@ -n ' ${name}' + exec ${command} ${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" |