diff options
author | Filipp Lepalaan <filipp@mac.com> | 2010-06-20 21:44:58 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2010-06-20 21:44:58 +0300 |
commit | 85406dae0c220759da4b816fa9380c25d72b73ba (patch) | |
tree | 0390e68282697fa7873e3bf44f9abff667359079 /stop.sh | |
download | offsync-85406dae0c220759da4b816fa9380c25d72b73ba.tar.gz offsync-85406dae0c220759da4b816fa9380c25d72b73ba.tar.bz2 offsync-85406dae0c220759da4b816fa9380c25d72b73ba.zip |
First commit
Diffstat (limited to 'stop.sh')
-rwxr-xr-x | stop.sh | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# offsync/stop.sh +# interrupts the offsite job in the morning + +MYDIR=$(dirname $0) +source "${MYDIR}/config" + +if -z "${PIDFILE}"; then + echo "Check your configuration!" 2>&1 +fi + +kill $(cat "$PIDFILE") && rm "${PIDFILE}" |