]> git.pld-linux.org Git - packages/samba.git/blobdiff - smb.init
- force cups 1.2.0 as smbd linked with cups 1.2.0 doesn't run with cups 1.1.x
[packages/samba.git] / smb.init
index 2ff68e06efadebdbc4f62ca1abfe75198662085f..fe78227ce81724b140a42e7e299a01338fbe9737 100644 (file)
--- a/smb.init
+++ b/smb.init
@@ -6,6 +6,8 @@
 #
 # config:      /etc/samba/smb.conf
 # config:      /etc/samba/lmhosts
+# processname: nmbd
+# processname: smbd
 
 export PATH=/bin:/sbin:/usr/bin:/usr/sbin
 
@@ -29,6 +31,7 @@ else
 fi
 
 TMPDIR="/tmp"; export TMPDIR
+unset TMP || :
 
 # Check that smb.conf exists.
 [ -f /etc/samba/smb.conf ] || exit 0
@@ -64,7 +67,7 @@ case "$1" in
        ;;
   status)
        status smbd
-       RETVAL=$?       
+       RETVAL=$?
        status nmbd
        RET=$?
        [ $RETVAL -eq 0 ] && RETVAL=$RET
@@ -81,7 +84,7 @@ case "$1" in
                killproc smbd -HUP
                RETVAL=$?
        else
-               msg_not_running smb >&2
+               msg_not_running smb
                exit 7
        fi
        ;;
This page took 0.032059 seconds and 4 git commands to generate.