~andreserl/maas/packaging_release_alpha4

« back to all changes in this revision

Viewing changes to debian/maas-dhcp.maas-dhcpd.service

[r=mpontillo][bug=1558640][author=blake-rouse] Add to apparmor profile to allow dhcpd to call maas-rackd. Fix maas-rack command to allow dhcpd user to call dhcp-notify only. Remove KillSignal from maas-dhcpd and maas-dhcpd6 as the fixed isc-dhcp-server no longer requires that kill signal to stop.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
ConditionPathExists=/var/lib/maas/dhcpd-interfaces
10
10
 
11
11
[Service]
12
 
# Kill the DHCP server with SIGKILL. Without this dhcpd can take a very long
13
 
# time to stop, which prevents the quick reload of the dhcpd.conf that MAAS
14
 
# requires.
15
 
KillSignal=SIGKILL
16
12
# Allow dhcp server to write lease and pid file as 'dhcpd' user
17
13
ExecStartPre=/bin/mkdir -p /run/maas/dhcp
18
14
# The leases files need to be root:dhcpd even when dropping privileges