Merge ~barryprice/torrent-config-charm/+git/torrent-config-charm:trunk into torrent-config-charm:trunk

Proposed by Barry Price
Status: Merged
Merged at revision: cf78b4d0dc32fe9012c1cafe7ce592a5194b17a9
Proposed branch: ~barryprice/torrent-config-charm/+git/torrent-config-charm:trunk
Merge into: torrent-config-charm:trunk
Diff against target: 19 lines (+1/-2)
1 file modified
files/torrent-sync (+1/-2)
Reviewer Review Type Date Requested Status
Paul Collins lgtm Approve
Review via email: mp+438518@code.launchpad.net

Commit message

Don't abort sync on local FQDN lookup failure

To post a comment you must log in.
Revision history for this message
Paul Collins (pjdc) :
review: Approve (lgtm)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/files/torrent-sync b/files/torrent-sync
2index 721582e..e7c438e 100755
3--- a/files/torrent-sync
4+++ b/files/torrent-sync
5@@ -19,13 +19,12 @@ umask 002
6 . $HOME/torrent-sync.conf
7 export RSYNC_PASSWORD
8
9-HOSTNAME=`hostname -f`
10 LOGFILE=$HOME/logs/torrent-rsync.log
11 LOCK=$HOME/logs/torrent-rsync.lock
12
13 # Check to see if another sync is in progress
14 if lockfile -! -l 43200 -r 0 "$LOCK"; then
15- echo $HOSTNAME is unable to start rsync, lock file exists
16+ echo Unable to start rsync, lock file exists
17 exit 1
18 fi
19 trap "rm -f $LOCK > /dev/null 2>&1" exit

Subscribers

People subscribed via source and target branches