Revision 691dfed9
b/doc/examples/hooks/ethers | ||
---|---|---|
34 | 34 |
# TARGET_BRIDGE: We'll only add the first nic which gets connected to this |
35 | 35 |
# bridge to /etc/ethers. |
36 | 36 |
TARGET_BRIDGE="br0" |
37 |
DAEMON_PID_FILE="/var/run/dnsmasq.pid"
|
|
37 |
DAEMON_PID_FILES="/var/run/dnsmasq.pid /var/run/dnsmasq/dnsmasq.pid"
|
|
38 | 38 |
|
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 |
... | ... | |
57 | 57 |
update_ethers_from_new() { |
58 | 58 |
chmod 644 /etc/ethers.new |
59 | 59 |
mv /etc/ethers.new /etc/ethers |
60 |
[ -f "$DAEMON_PID_FILE" ] && kill -HUP $(< $DAEMON_PID_FILE) |
|
60 |
for file in $DAEMON_PID_FILES; do |
|
61 |
[ -f "$file" ] && kill -HUP $(< $file) |
|
62 |
done |
|
61 | 63 |
} |
62 | 64 |
|
63 | 65 |
if [ "$hooks_path" = "instance-add" -o \ |
Also available in: Unified diff