From 811c1cca15fdee01ba0df8db5d12c62199af8039 Mon Sep 17 00:00:00 2001 From: changzhi1990 Date: Thu, 7 Jan 2016 16:57:09 +0800 Subject: [PATCH] Remove unncessary code --- etc/init.d/stetho-agent | 6 ------ 1 file changed, 6 deletions(-) diff --git a/etc/init.d/stetho-agent b/etc/init.d/stetho-agent index f0179b8..5627cd9 100755 --- a/etc/init.d/stetho-agent +++ b/etc/init.d/stetho-agent @@ -20,12 +20,6 @@ logfile="/var/log/$prog/server.log" lockfile=/var/lock/subsys/$prog-agent start() { - if [ ! -d "/var/run/"$prog ]; then - mkdir "/var/run/"$prog - fi - if [ ! -f $pidfile ]; then - touch $pidfile - fi [ -x $exec ] || exit 5 echo -n $"Starting $prog: " daemon --user neutron --pidfile $pidfile "$exec & echo \$! > $pidfile"