diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-05-08 18:35:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-08 18:35:30 +0200 |
commit | 991ff167d53ab173495f75b33b877a94c3edd24f (patch) | |
tree | 5f4c0fc632f4b1a1504f1a3a498f5a79c203d309 /src/systemd/isc-dhcp-relay.service | |
parent | 29dee3abb55d0f0c6b91b311f30521b45d7e46b6 (diff) | |
parent | b90e3a08ea5cbfc9bae3fd13a49b847b6f2085bb (diff) | |
download | vyos-1x-991ff167d53ab173495f75b33b877a94c3edd24f.tar.gz vyos-1x-991ff167d53ab173495f75b33b877a94c3edd24f.zip |
Merge pull request #404 from jjakob/dhcp-systemd-improve-T2438
dhcp(v6)-server/relay: T2438: change systemd service type to forking, validate config files
Diffstat (limited to 'src/systemd/isc-dhcp-relay.service')
-rw-r--r-- | src/systemd/isc-dhcp-relay.service | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/systemd/isc-dhcp-relay.service b/src/systemd/isc-dhcp-relay.service index ebf4d234e..56bcec840 100644 --- a/src/systemd/isc-dhcp-relay.service +++ b/src/systemd/isc-dhcp-relay.service @@ -2,13 +2,19 @@ Description=ISC DHCP IPv4 relay Documentation=man:dhcrelay(8) Wants=network-online.target +RequiresMountsFor=/run ConditionPathExists=/run/dhcp-relay/dhcp.conf After=vyos-router.service [Service] +Type=forking WorkingDirectory=/run/dhcp-relay +RuntimeDirectory=dhcp-relay +RuntimeDirectoryPreserve=yes EnvironmentFile=/run/dhcp-relay/dhcp.conf -ExecStart=/usr/sbin/dhcrelay -d -4 $OPTIONS +PIDFile=/run/dhcp-relay/dhcrelay.pid +ExecStart=/usr/sbin/dhcrelay -4 -pf /run/dhcp-relay/dhcrelay.pid $OPTIONS +Restart=always [Install] WantedBy=multi-user.target |