From ef432f078b5f047b1b66fb09fa085bccd91c332d Mon Sep 17 00:00:00 2001 From: Max Lv Date: Tue, 18 Feb 2014 09:01:27 +0800 Subject: [PATCH] Fix the pid file in centos init script --- rpm/SOURCES/etc/init.d/shadowsocks | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpm/SOURCES/etc/init.d/shadowsocks b/rpm/SOURCES/etc/init.d/shadowsocks index 91e964ea..b5b4074f 100644 --- a/rpm/SOURCES/etc/init.d/shadowsocks +++ b/rpm/SOURCES/etc/init.d/shadowsocks @@ -23,7 +23,7 @@ [ ${NETWORKING} ="yes" ] || exit 0 # Daemon -NAME=Shadowsocks-Server +NAME=shadowsocks-server DAEMON=/usr/local/bin/ss-server # Path to the configuration file. @@ -50,7 +50,7 @@ LOCK_FILE=/var/lock/subsys/shadowsocks # Path to the pid file. # -PID=/var/run/shadowsocks.pid +PID=/var/run/$NAME/pid #====================================================================