summaryrefslogtreecommitdiffstats
path: root/packaging/SGI/samba.rc
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1997-09-05 02:28:41 +0000
committerJeremy Allison <jra@samba.org>1997-09-05 02:28:41 +0000
commitd6fc4eb405d83c3a54e47857758886adf417f2f6 (patch)
tree89494c35544fd363ca79369e69826b232f009425 /packaging/SGI/samba.rc
parentab68ac375ee5c175366123617887a725498efddc (diff)
downloadsamba-d6fc4eb405d83c3a54e47857758886adf417f2f6.tar.gz
samba-d6fc4eb405d83c3a54e47857758886adf417f2f6.tar.xz
samba-d6fc4eb405d83c3a54e47857758886adf417f2f6.zip
This is really Herb adding the SGI packaging files.
(This used to be commit 8fde65239d0a9462fb044670220cd3c63bd887cb)
Diffstat (limited to 'packaging/SGI/samba.rc')
-rw-r--r--packaging/SGI/samba.rc42
1 files changed, 42 insertions, 0 deletions
diff --git a/packaging/SGI/samba.rc b/packaging/SGI/samba.rc
new file mode 100644
index 00000000000..121b3400a38
--- /dev/null
+++ b/packaging/SGI/samba.rc
@@ -0,0 +1,42 @@
+#! /bin/sh
+
+#
+# Samba server control
+#
+
+IS_ON=/etc/chkconfig
+KILLALL=/sbin/killall
+
+SAMBAD=/usr/samba/bin/smbd
+#SAMBA_OPTS=-d2
+NMBD=/usr/samba/bin/nmbd
+#NMBD_OPTS=-d1
+
+if test ! -x $IS_ON ; then
+ IS_ON=true
+fi
+
+if $IS_ON verbose ; then
+ ECHO=echo
+else # For a quiet startup and shutdown
+ ECHO=:
+fi
+
+case $1 in
+'start')
+ if $IS_ON samba && test -x $SAMBAD; then
+ $KILLALL -15 smbd nmbd
+ $ECHO "Samba:\c"
+ $SAMBAD $SAMBA_OPTS -D; $ECHO " smbd\c"
+ $NMBD $NMBD_OPTS -D; $ECHO " nmbd\c"
+ $ECHO "."
+ fi
+ ;;
+'stop')
+ $ECHO "Stopping Samba Servers."
+ $KILLALL -15 smbd nmbd
+ ;;
+*)
+ echo "usage: /etc/init.d/samba {start|stop}"
+ ;;
+esac