Fix typo and change agent script's mode
This commit is contained in:
parent
5fc83959c6
commit
e7a18c2ad7
6
etc/init.d/steth-agent → etc/init.d/stetho-agent
Normal file → Executable file
6
etc/init.d/steth-agent → etc/init.d/stetho-agent
Normal file → Executable file
@ -20,6 +20,12 @@ logfile="/var/log/$prog/server.log"
|
|||||||
lockfile=/var/lock/subsys/$prog-agent
|
lockfile=/var/lock/subsys/$prog-agent
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
|
if [ ! -d "/var/run/"$prog ]; then
|
||||||
|
mkdir "/var/run/"$prog
|
||||||
|
fi
|
||||||
|
if [ ! -f $pidfile ]; then
|
||||||
|
touch $pidfile
|
||||||
|
fi
|
||||||
[ -x $exec ] || exit 5
|
[ -x $exec ] || exit 5
|
||||||
echo -n $"Starting $prog: "
|
echo -n $"Starting $prog: "
|
||||||
daemon --user neutron --pidfile $pidfile "$exec & echo \$! > $pidfile"
|
daemon --user neutron --pidfile $pidfile "$exec & echo \$! > $pidfile"
|
@ -2,3 +2,4 @@ jsonrpclib
|
|||||||
netaddr
|
netaddr
|
||||||
mock
|
mock
|
||||||
cliff
|
cliff
|
||||||
|
oslo.config>=1.6.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user