From 9ac309c5b10ea22aef0c5f0473effac166253c40 Mon Sep 17 00:00:00 2001 From: hdid Date: Mon, 17 Nov 2014 21:46:57 +0330 Subject: [PATCH] refine init script start-stop-daemon can not process names longer than 15 characters! --- debian/shadowsocks-libev.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/shadowsocks-libev.init b/debian/shadowsocks-libev.init index aee5d3a8..a292e965 100644 --- a/debian/shadowsocks-libev.init +++ b/debian/shadowsocks-libev.init @@ -1,6 +1,6 @@ #!/bin/sh ### BEGIN INIT INFO -# Provides: shadowsocks +# Provides: shadowsocks-libev # Required-Start: $network $local_fs $remote_fs # Required-Stop: $remote_fs # Default-Start: 2 3 4 5 @@ -73,7 +73,7 @@ do_stop() # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred - start-stop-daemon --stop --quiet --retry=KILL/5 --pidfile $PIDFILE --name $NAME + start-stop-daemon --stop --quiet --retry=KILL/5 --pidfile $PIDFILE --exec $DAEMON RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks