diff options
author | Gerald Carter <jerry@samba.org> | 2003-09-09 03:25:53 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-09-09 03:25:53 +0000 |
commit | dbfcec04a1691659743f8f6ab065b8212fd9a5dd (patch) | |
tree | 6d5f2df124fa4c22a4816d6ac4f7cac117ac23f3 /packaging/Caldera/OpenServer/smb.init | |
parent | 3cf6eaebd6c57974d33934bf9647b0ab9f50f88e (diff) | |
download | samba-dbfcec04a1691659743f8f6ab065b8212fd9a5dd.tar.gz samba-dbfcec04a1691659743f8f6ab065b8212fd9a5dd.tar.bz2 samba-dbfcec04a1691659743f8f6ab065b8212fd9a5dd.zip |
syncing packaging files from 3.0
(This used to be commit 9374755ad3b844a86642a7ea1795ec2b8ab736b2)
Diffstat (limited to 'packaging/Caldera/OpenServer/smb.init')
-rwxr-xr-x | packaging/Caldera/OpenServer/smb.init | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/packaging/Caldera/OpenServer/smb.init b/packaging/Caldera/OpenServer/smb.init deleted file mode 100755 index ce6c6fa4b3..0000000000 --- a/packaging/Caldera/OpenServer/smb.init +++ /dev/null @@ -1,76 +0,0 @@ -#!/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 -# -# Modified 17-Jul-99 by Ron Record (rr@sco.com) for use in SCO Skunkware -# - -SAMBADIR=/usr/local/samba -RCSCRIPT=/etc/rc2.d/S99samba - -if [ ! -d /usr/bin ] -then # /usr not mounted - exit -fi - -killproc() { # kill the named process(es) - if [ -f $SAMBADIR/var/locks/$1.pid ] - then - kill `cat $SAMBADIR/var/locks/$1.pid` - else - pid=`/usr/bin/ps -e | - /usr/bin/grep $1 | - /usr/bin/sed -e 's/^ *//' -e 's/ .*//'` - [ "$pid" != "" ] && kill $pid - fi -} - -start() { -# -# Edit these lines to suit your installation (paths, workgroup, host) -# - $SAMBADIR/sbin/smbd -D -s $SAMBADIR/lib/smb.conf - $SAMBADIR/sbin/nmbd -D -s $SAMBADIR/lib/smb.conf -} - -stop() { - killproc nmbd - killproc smbd -} - -# Start/stop processes required for samba server - -case "$1" in - -'start') - start - ;; -'stop') - stop - ;; -'restart') - stop - start - ;; -'enable') - if [ -h $RCSCRIPT ] ; then - echo "Samba is already enabled." - else - echo "Enabling Samba ... \c" - rm -f $RCSCRIPT - ln -s /etc/init.d/samba $RCSCRIPT - echo "Done" - fi - ;; -'disable') - echo "Disabling Samba ... \c" - rm -f $RCSCRIPT - echo "Done" - ;; -*) - echo "Usage: /etc/init.d/samba { start | stop | restart | enable | disable }" - ;; -esac |