=== modified file 'sbin/zsvgen' --- sbin/zsvgen 2014-10-10 13:16:24 +0000 +++ sbin/zsvgen 2014-09-09 08:11:41 +0000 @@ -109,7 +109,10 @@ mkdir -p $zsv_dir/log [[ -L $zsv_dir/log/run ]] && rm $zsv_dir/log/run ln -s ${commands[zsv.exec]} $zsv_dir/log/run - elif [[ -e $zsv_dir/log ]]; then + elif [[ -x $zsv_dir/log/run ]]; then + rm -f $zsv_dir/log/run + [[ -p $zsv_dir/log/supervise/control ]] && \ + echo -n x >$zsv_dir/log/supervise/control rm -rf $zsv_dir/log fi === removed file 'zsh-functions/zsv_kill_cgroup' --- zsh-functions/zsv_kill_cgroup 2014-10-10 13:16:24 +0000 +++ zsh-functions/zsv_kill_cgroup 1970-01-01 00:00:00 +0000 @@ -1,9 +0,0 @@ -# vim: ft=zsh noet ts=4 sts=4 sw=4 -local N -N=${#${="$(<$zsv_cgroup/tasks)"}} -(($N)) || return - -while (($N)) && [[ -n "$(<$zsv_cgroup/tasks)" ]]; do - N=$[ $N - 1 ] - start-stop-daemon --stop --retry TERM/10/KILL/5 --pidfile $zsv_cgroup/tasks -done