Fix typo and change agent script's mode

This commit is contained in:
changzhi1990 2016-01-07 11:32:03 +08:00
parent 5fc83959c6
commit e7a18c2ad7
2 changed files with 7 additions and 0 deletions

6
etc/init.d/steth-agent → etc/init.d/stetho-agent Normal file → Executable file
View File

@ -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"

View File

@ -2,3 +2,4 @@ jsonrpclib
netaddr
mock
cliff
oslo.config>=1.6.0