summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2001-06-09 19:34:08 +0000
committerGerald Carter <jerry@samba.org>2001-06-09 19:34:08 +0000
commitf473c2bd298e4259d4126846ef6bf7d336e6ebd6 (patch)
tree4d73127c8f52fbe1f6c521f2a970bef76645d702
parenta09634736b8c6780b914d16535e87272ca57f0c5 (diff)
downloadsamba-f473c2bd298e4259d4126846ef6bf7d336e6ebd6.tar.gz
samba-f473c2bd298e4259d4126846ef6bf7d336e6ebd6.tar.xz
samba-f473c2bd298e4259d4126846ef6bf7d336e6ebd6.zip
Makethe generic init script use /usr/local/samba/bin
(i know no packaging uses this, but it makes a good generic init script when installaing from source)
-rwxr-xr-xpackaging/Example/samba.init7
1 files changed, 5 insertions, 2 deletions
diff --git a/packaging/Example/samba.init b/packaging/Example/samba.init
index c1d605cda06..4f02cd8a1af 100755
--- a/packaging/Example/samba.init
+++ b/packaging/Example/samba.init
@@ -1,5 +1,8 @@
#!/bin/sh
#
+SMBD=/usr/local/samba/bin/smbd
+NMBD=/usr/local/samba/bin/nmbd
+
if [ ! -d /usr/bin ]; then
echo "The /usr file system is not mounted."
exit 1
@@ -19,8 +22,8 @@ case "$1" in
'start')
echo "Starting Samba"
- /usr/local/samba/sbin/smbd
- /usr/local/samba/sbin/nmbd
+ $SMBD
+ $NMBD
echo "Done."
;;
'stop')