mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-14 08:01:38 +01:00
be consistent is use of variable vs real name
This commit is contained in:
parent
3d53711e31
commit
c1827562dc
1 changed files with 3 additions and 3 deletions
|
@ -15,8 +15,8 @@ date > $LOGFILE
|
||||||
do_start() {
|
do_start() {
|
||||||
if [ -f $PIDFILE ] && [ -f /proc/$(cat $PIDFILE)/exe ]; then
|
if [ -f $PIDFILE ] && [ -f /proc/$(cat $PIDFILE)/exe ]; then
|
||||||
echo "already running: pid=$(cat $PIDFILE)" | tee -a $LOGFILE
|
echo "already running: pid=$(cat $PIDFILE)" | tee -a $LOGFILE
|
||||||
elif pidof xwrelay >/dev/null; then
|
elif pidof $XWRELAY >/dev/null; then
|
||||||
echo "already running: pid=$(pidof xwrelay)" | tee -a $LOGFILE
|
echo "already running: pid=$(pidof $XWRELAY)" | tee -a $LOGFILE
|
||||||
else
|
else
|
||||||
echo "starting..." | tee -a $LOGFILE
|
echo "starting..." | tee -a $LOGFILE
|
||||||
echo "running $XWRELAY $@ -f $CONFFILE -s $CSSFILE" | tee -a $LOGFILE
|
echo "running $XWRELAY $@ -f $CONFFILE -s $CSSFILE" | tee -a $LOGFILE
|
||||||
|
@ -38,7 +38,7 @@ case $1 in
|
||||||
kill $(cat $PIDFILE)
|
kill $(cat $PIDFILE)
|
||||||
else
|
else
|
||||||
echo "not running or $PIDFILE not found" | tee -a $LOGFILE
|
echo "not running or $PIDFILE not found" | tee -a $LOGFILE
|
||||||
PID=$(pidof xwrelay || true)
|
PID=$(pidof $XWRELAY || true)
|
||||||
if [ "x${PID}" != "x" ]; then
|
if [ "x${PID}" != "x" ]; then
|
||||||
echo "maybe it's $PID; killing them" | tee -a $LOGFILE
|
echo "maybe it's $PID; killing them" | tee -a $LOGFILE
|
||||||
kill $PID
|
kill $PID
|
||||||
|
|
Loading…
Reference in a new issue