|
@ -60,7 +60,7 @@ EOF |
|
|
## Logrotate for dnsmasq and named |
|
|
## Logrotate for dnsmasq and named |
|
|
## |
|
|
## |
|
|
|
|
|
|
|
|
cat <<EOF > /etc/logrotate.d/dnsmasq |
|
|
|
|
|
|
|
|
cat <<EOF > /etc/logrotate.d/dnsmasq |
|
|
|
|
|
|
|
|
/var/log/dnsmasq.log { |
|
|
/var/log/dnsmasq.log { |
|
|
missingok |
|
|
missingok |
|
@ -69,14 +69,14 @@ cat <<EOF > /etc/logrotate.d/dnsmasq |
|
|
compress |
|
|
compress |
|
|
|
|
|
|
|
|
postrotate |
|
|
postrotate |
|
|
kill -s SIGUSR2 "\$(cat /var/run/dnsmasq/dnsmasq.pid)" |
|
|
|
|
|
|
|
|
/bin/kill -s SIGUSR2 "\$(cat /var/run/dnsmasq/dnsmasq.pid)" |
|
|
endscript |
|
|
endscript |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
EOF |
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat <<EOF > /etc/logrotate.d/lxc-dnsmasq |
|
|
|
|
|
|
|
|
cat <<EOF > /etc/logrotate.d/lxc-dnsmasq |
|
|
|
|
|
|
|
|
/var/log/lxc-dnsmasq.log { |
|
|
/var/log/lxc-dnsmasq.log { |
|
|
missingok |
|
|
missingok |
|
@ -85,7 +85,7 @@ cat <<EOF > /etc/logrotate.d/lxc-dnsmasq |
|
|
compress |
|
|
compress |
|
|
|
|
|
|
|
|
postrotate |
|
|
postrotate |
|
|
kill -s SIGUSR2 "\$(cat /var/run/lxc/dnsmasq.pid)" |
|
|
|
|
|
|
|
|
/bin/kill -s SIGUSR2 "\$(cat /var/run/lxc/dnsmasq.pid)" |
|
|
endscript |
|
|
endscript |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|