diff options
author | John Terpstra <jht@samba.org> | 1998-11-14 13:01:34 +0000 |
---|---|---|
committer | John Terpstra <jht@samba.org> | 1998-11-14 13:01:34 +0000 |
commit | 6b989ca4fd6e80e04a28ccea76875933f016dd86 (patch) | |
tree | 707b021f4b3365222c9777bb593c33531a7be239 /packaging/Digital/samba.init | |
parent | 3a4cce6d16e27a385b33a5ea0247006036f6a14e (diff) | |
download | samba-6b989ca4fd6e80e04a28ccea76875933f016dd86.tar.gz samba-6b989ca4fd6e80e04a28ccea76875933f016dd86.tar.bz2 samba-6b989ca4fd6e80e04a28ccea76875933f016dd86.zip |
Added first cut of the new packaging scripts for Digital Unix.
Note: This will be extended for all other OS's so that it can be
maintained by the samba release scripts.
(This used to be commit 0f98a2fd58aee1dac4d0f4098a2e690dfaf5ba27)
Diffstat (limited to 'packaging/Digital/samba.init')
-rwxr-xr-x | packaging/Digital/samba.init | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/packaging/Digital/samba.init b/packaging/Digital/samba.init new file mode 100755 index 0000000000..c1d605cda0 --- /dev/null +++ b/packaging/Digital/samba.init @@ -0,0 +1,34 @@ +#!/bin/sh +# +if [ ! -d /usr/bin ]; then + echo "The /usr file system is not mounted." + exit 1 +fi + +killproc() { + pid=`/bin/ps ax | grep -w $1 | sed -e 's/^ *//' -e 's/ .*//'` + echo "Stopping $1 now." + [ "$pid" != "" ] && kill -15 $pid + echo $pid +} + + +# Start/stop processes required for samba server + +case "$1" in + + 'start') + echo "Starting Samba" + /usr/local/samba/sbin/smbd + /usr/local/samba/sbin/nmbd + echo "Done." + ;; + 'stop') + killproc smbd + killproc nmbd + ;; + *) + echo "Usage: /sbin/init.d/samba.init [ start | stop ]" + ;; +esac +exit 0 |