Commit a0803c4f authored by Andrej Shadura's avatar Andrej Shadura

Don’t use the backtick syntax in the init script

parent 440826ae
......@@ -66,13 +66,13 @@ do_start()
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
PIDFILE=`get_config_key "pid_file"`
PIDFILE=$(get_config_key pid_file)
RETVAL=$?
if [ "$RETVAL" != 0 ]; then
return $RETVAL
fi
if [ -r "$PIDFILE" ]; then
kill -0 `cat $PIDFILE` && return 1
kill -0 $(cat $PIDFILE) && return 1
fi
export PYTHONPATH
......@@ -99,7 +99,7 @@ do_stop()
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
PIDFILE=`get_config_key "pid_file"`
PIDFILE=$(get_config_key pid_file)
RETVAL=$?
if [ "$RETVAL" != 0 ]; then
return $RETVAL
......@@ -144,7 +144,7 @@ case "$1" in
esac
;;
status)
PIDFILE=`get_config_key "pid_file"`
PIDFILE=$(get_config_key pid_file)
RETVAL=$?
if [ "$RETVAL" != 0 ]; then
return $RETVAL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment