Revision 87a5035c

b/doc/examples/hooks/ethers
39 39
# In order to handle concurrent execution of this lock, we use the $LOCKFILE.
40 40
# LOCKFILE_CREATE and LOCKFILE_REMOVE are the path names for the lockfile-progs
41 41
# programs which we use as helpers.
42
LOCKFILE="/var/lock/ganeti_ethers.lock"
42
LOCKFILE="/var/lock/ganeti_ethers"
43 43
LOCKFILE_CREATE="/usr/bin/lockfile-create"
44 44
LOCKFILE_REMOVE="/usr/bin/lockfile-remove"
45 45

  
......
50 50
nic_count=$GANETI_INSTANCE_NIC_COUNT
51 51

  
52 52
acquire_lockfile() {
53
  $LOCKFILE_CREATE -l $LOCKFILE || exit 1
54
  trap "$LOCKFILE_REMOVE -l $LOCKFILE" EXIT
53
  $LOCKFILE_CREATE $LOCKFILE || exit 1
54
  trap "$LOCKFILE_REMOVE $LOCKFILE" EXIT
55 55
}
56 56

  
57 57
update_ethers_from_new() {

Also available in: Unified diff