diff options
author | Shirish Kalele <kalele@samba.org> | 2001-04-11 02:28:38 +0000 |
---|---|---|
committer | Shirish Kalele <kalele@samba.org> | 2001-04-11 02:28:38 +0000 |
commit | 362e4bb21a3c630eb0625a1b3ab9f70dafc85d7e (patch) | |
tree | dc8d9981f58d0e92f49cbf71a2364b49c215a9bb /packaging/Solaris/samba.server.master | |
parent | 91e97f90919fdc3bd2d26a5809cc3d037dbe4b22 (diff) | |
download | samba-362e4bb21a3c630eb0625a1b3ab9f70dafc85d7e.tar.gz samba-362e4bb21a3c630eb0625a1b3ab9f70dafc85d7e.tar.bz2 samba-362e4bb21a3c630eb0625a1b3ab9f70dafc85d7e.zip |
Adding Solaris packaging files to HEAD.
(This used to be commit 3ac5f6b59ee30d12bfec0cc36cf00b9e9798a453)
Diffstat (limited to 'packaging/Solaris/samba.server.master')
-rwxr-xr-x | packaging/Solaris/samba.server.master | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/packaging/Solaris/samba.server.master b/packaging/Solaris/samba.server.master new file mode 100755 index 0000000000..6de77780b3 --- /dev/null +++ b/packaging/Solaris/samba.server.master @@ -0,0 +1,48 @@ +#!/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) +# + BASE=__BASEDIR__/samba + $BASE/bin/smbd -D -s$BASE/lib/smb.conf + $BASE/bin/nmbd -D -s$BASE/lib/smb.conf + ;; +'stop') + killproc nmbd + killproc smbd + ;; + +'restart') + killproc nmbd + killproc smbd + BASE=/usr/local/samba + $BASE/bin/smbd -D -s$BASE/lib/smb.conf + $BASE/bin/nmbd -D -l$BASE/var/log -s$BASE/lib/smb.conf + ;; + +*) + echo "Usage: /etc/init.d/samba.server { start | stop | restart }" + ;; +esac |