diff --git a/etc/init.d/steth-agent b/etc/init.d/stetho-agent old mode 100644 new mode 100755 similarity index 92% rename from etc/init.d/steth-agent rename to etc/init.d/stetho-agent index 5627cd9..f0179b8 --- a/etc/init.d/steth-agent +++ b/etc/init.d/stetho-agent @@ -20,6 +20,12 @@ 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" diff --git a/requirements.txt b/requirements.txt index 3a92f0e..6b00dfb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ jsonrpclib netaddr mock cliff +oslo.config>=1.6.0