]> git.pld-linux.org Git - packages/samba.git/commitdiff
fix pidfile location in smb initscript
authorElan Ruusamäe <glen@delfi.ee>
Thu, 16 Apr 2015 09:20:01 +0000 (12:20 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 16 Apr 2015 09:20:01 +0000 (12:20 +0300)
samba.init [changed mode: 0644->0755]
smb.init [changed mode: 0644->0755]
winbind.init [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 541d581..a605f49
--- a/smb.init
+++ b/smb.init
@@ -17,8 +17,8 @@
 
 # Set default config
 CFGFILE="/etc/samba/smb.conf"
-smbd_pidfile="/var/run/smbd.pid"
-nmbd_pidfile="/var/run/nmbd.pid"
+smbd_pidfile="/var/run/samba/smbd.pid"
+nmbd_pidfile="/var/run/samba/nmbd.pid"
 lockname=smb
 
 # Demon specified configuration.
@@ -34,10 +34,10 @@ else
        exit 0
 fi
 
-TMPDIR="/tmp"; export TMPDIR
+export TMPDIR=/tmp
 unset TMP || :
 
-SERVER_ROLE=`samba-tool testparm --parameter-name="server role"  2>/dev/null | tail -1`
+SERVER_ROLE=$(samba-tool testparm --parameter-name="server role" 2>/dev/null | tail -n1)
 if [ "$SERVER_ROLE" = "active directory domain controller" ]; then
        exit 0
 fi
old mode 100644 (file)
new mode 100755 (executable)
This page took 0.291911 seconds and 4 git commands to generate.