From 0557bcd7271dfe106aa84f7861a3ce8a7a20e52e Mon Sep 17 00:00:00 2001 From: Vinna Date: Tue, 21 Jan 2014 17:04:48 +0800 Subject: [PATCH] fix service failed --- rpm/SOURCES/shadowsocks | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rpm/SOURCES/shadowsocks b/rpm/SOURCES/shadowsocks index 7dd40207..78130c4c 100644 --- a/rpm/SOURCES/shadowsocks +++ b/rpm/SOURCES/shadowsocks @@ -68,7 +68,8 @@ echo "$NAME is already running!" exit 0 else echo -n $"Starting ${NAME}: " -daemon --check $DAEMON --user $USER "$DAEMON -f $PID -c $CONF > /dev/null" +#daemon --check $DAEMON --user $USER "$DAEMON -f $PID -c $CONF > /dev/null" +daemon $DAEMON -c $CONF -f $PID fi RETVAL=$? @@ -120,4 +121,4 @@ echo $"Usage: $0 {start|stop|restart|condrestart|status}" RETVAL=1 esac -exit $RETVAL \ No newline at end of file +exit $RETVAL