}
function deleteLock {
- if ! rmdir /tmp/$(basename $0).lock; then
+ if ! rmdir /var/lock/$(basename $0); then
scottyerror "Could not delete lockfile /tmp/$(basename $0).lock!"
fi
}
-function prepare {
- scottyinfo "Preparing for sync."
-}
-
function cleanup_abort {
scottyerror "Caught exit signal! Cleaning up."
exit 0
}
-if ! mkdir /tmp/$(basename $0).lock; then
+if ! mkdir /var/lock/$(basename $0); then
scottyerror "Another instance of $(basename $0) is still running!"
exit 1
else