mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +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() {
|
||||
if [ -f $PIDFILE ] && [ -f /proc/$(cat $PIDFILE)/exe ]; then
|
||||
echo "already running: pid=$(cat $PIDFILE)" | tee -a $LOGFILE
|
||||
elif pidof xwrelay >/dev/null; then
|
||||
echo "already running: pid=$(pidof xwrelay)" | tee -a $LOGFILE
|
||||
elif pidof $XWRELAY >/dev/null; then
|
||||
echo "already running: pid=$(pidof $XWRELAY)" | tee -a $LOGFILE
|
||||
else
|
||||
echo "starting..." | tee -a $LOGFILE
|
||||
echo "running $XWRELAY $@ -f $CONFFILE -s $CSSFILE" | tee -a $LOGFILE
|
||||
|
@ -38,7 +38,7 @@ case $1 in
|
|||
kill $(cat $PIDFILE)
|
||||
else
|
||||
echo "not running or $PIDFILE not found" | tee -a $LOGFILE
|
||||
PID=$(pidof xwrelay || true)
|
||||
PID=$(pidof $XWRELAY || true)
|
||||
if [ "x${PID}" != "x" ]; then
|
||||
echo "maybe it's $PID; killing them" | tee -a $LOGFILE
|
||||
kill $PID
|
||||
|
|
Loading…
Reference in a new issue