Removed legacy lockfile code from init script

pull/19/head
deajan 9 years ago
parent 447bd7f36d
commit aef10c2808

@ -31,6 +31,7 @@ UNDER WORK
RECENT CHANGES
--------------
- Removed legacy lockfile code from init script
- Removed hardcoded program name from init script
- 01 Avr. 2015: Osync v1.00pre
- Improved and refactored the soft deletion routine by merging conflict backup and soft deletion

@ -11,8 +11,7 @@ progexec=osync.sh
progpath=/usr/local/bin
confdir=/etc/osync
pidfile=/var/run/$prog
lockfile=/var/lock/subsys/$prog
SCRIPT_BUILD=1304201501
SCRIPT_BUILD=1304201502
if [ ! -f $progpath/$progexec ] && [ ! -f $progexec ]
then
@ -84,7 +83,7 @@ stop() {
fi
else
rm -f $pfile
echo "$pfile is dead but lockfile exists."
echo "$prog instance $pfile (pid $(cat $pfile)) is dead but pidfile exists."
fi
done
}
@ -104,7 +103,7 @@ status() {
then
echo "$prog instance $(basename $pfile) is running (pid $(cat $pfile))"
else
echo "$pfile is dead but lockfile exists."
echo "$prog instance $pfile (pid $(cat $pfile)) is dead but pidfile exists."
$errno=1
fi
done

Loading…
Cancel
Save