Fix verification is_running in lisa init script on Debian and Ubuntu

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit f790aba47d)
pull/92/head
Slávek Banko 9 years ago
parent 41241c98d3
commit 6eccc1f2f7

@ -26,7 +26,7 @@ is_running ()
if [ -L /proc/`cat $PIDFILE`/exe ]
then
#checking for stale pidfile
if grep -q $NAME /proc/`cat $PIDFILE`/cmdline
if grep -q $DAEMON /proc/`cat $PIDFILE`/cmdline
then
#program is running and is called lisa
return 0

@ -26,7 +26,7 @@ is_running ()
if [ -L /proc/`cat $PIDFILE`/exe ]
then
#checking for stale pidfile
if grep -q $NAME /proc/`cat $PIDFILE`/cmdline
if grep -q $DAEMON /proc/`cat $PIDFILE`/cmdline
then
#program is running and is called lisa
return 0

@ -26,7 +26,7 @@ is_running ()
if [ -L /proc/`cat $PIDFILE`/exe ]
then
#checking for stale pidfile
if grep -q $NAME /proc/`cat $PIDFILE`/cmdline
if grep -q $DAEMON /proc/`cat $PIDFILE`/cmdline
then
#program is running and is called lisa
return 0

Loading…
Cancel
Save