diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-08-16 07:38:47 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-08-16 07:38:47 +0000 |
commit | 52566664a4160ae96d647a943f3693cfc335ec38 (patch) | |
tree | 1b133a38eef16e52da130ae96a79d99dd1cd7d06 /examples/svr4-startup/samba.server | |
parent | 0b5a4b5b873281973c1fb2492d0d7018f3c8eedb (diff) | |
download | samba-52566664a4160ae96d647a943f3693cfc335ec38.tar.gz samba-52566664a4160ae96d647a943f3693cfc335ec38.tar.bz2 samba-52566664a4160ae96d647a943f3693cfc335ec38.zip |
SVR4 startup scripts from Timo Knuutila (knuutila@cs.utu.fi)
(This used to be commit 57417cdaba60d718d5d57d5abe00bbe445769cad)
Diffstat (limited to 'examples/svr4-startup/samba.server')
-rwxr-xr-x | examples/svr4-startup/samba.server | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/examples/svr4-startup/samba.server b/examples/svr4-startup/samba.server new file mode 100755 index 0000000000..0a47fdb10c --- /dev/null +++ b/examples/svr4-startup/samba.server @@ -0,0 +1,38 @@ +#!/bin/sh +#ident "@(#)samba.server 1.0 96/06/19 TK" /* SVr4.0 1.1.13.1*/ +# +# Please send info on modifications to knuutila@cs.utu.fi +# +# This file should have uid root, gid sys and chmod 744 +# +if [ ! -d /usr/bin ] +then # /usr not mounted + exit +fi + +killproc() { # kill the named process(es) + pid=`/usr/bin/ps -e | + /usr/bin/grep -w $1 | + /usr/bin/sed -e 's/^ *//' -e 's/ .*//'` + [ "$pid" != "" ] && kill $pid +} + +# Start/stop processes required for samba server + +case "$1" in + +'start') +# +# Edit these lines to suit your installation (paths, workgroup, host) +# + /opt/samba/bin/smbd -D -s/opt/samba/smb.conf + /opt/samba/bin/nmbd -D -l/opt/samba/log -s/opt/samba/smb.conf + ;; +'stop') + killproc nmbd + killproc smbd + ;; +*) + echo "Usage: /etc/init.d/samba.server { start | stop }" + ;; +esac |