ssfs rev 71

Kill lsyncd before restarting it
author Christophe Lincoln <pankso@slitaz.org>
date Mon Jun 13 20:42:07 2011 +0200 (2011-06-13)
parents 686816b883f4
children 525d7e348205
files ssfs
line diff
     1.1 --- a/ssfs	Mon Jun 13 20:28:48 2011 +0200
     1.2 +++ b/ssfs	Mon Jun 13 20:42:07 2011 +0200
     1.3 @@ -127,10 +127,7 @@
     1.4  				sed -e "/^$/"d -e "/^.\/$/"d
     1.5  		
     1.6  		# Monitor local folder if not yet running.
     1.7 -		if [ ! -s "$pid" ]; then
     1.8 -			kill $(cat $pid) 2>/dev/null
     1.9 -			rm -f $pid
    1.10 -		fi
    1.11 +		killall lsyncd 2>/dev/null
    1.12  		gettext "Starting lsyncd daemon..."
    1.13  		lsyncd -pidfile $pid -log all -logfile $logdir/lsyncd.log $config
    1.14  		echo "" ;;