Random scripts for my servers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

15 lines
167 B

#!/bin/bash
lockfile=lock
: >> ${lockfile}
exec 9>${lockfile}
if ! flock -n 9 ; then
#Another instance is running
exit 1
fi
#TODO: rsync
: > ${lockfile}