Debian Codegraph @

debian/[email protected]

raw
1 [Unit]
2 Description=dhcp-probe daemon to survey DHCP/BootP server on interface %I
3 Documentation=man:dhcp-probe(8)
4 PartOf=dhcp-probe.service
5 Requires=sys-subsystem-net-devices-%i.device
6 After=sys-subsystem-net-devices-%i.device
7
8 [Service]
9 RuntimeDirectory=dhcp-probe
10 RuntimeDirectoryPreserve=yes
11 PIDFile=/run/dhcp-probe/dhcp_probe.pid.%I
12 ExecStartPre=/bin/sh -c 'i=0; while ! ip address show dev "$0" | grep -qw 'inet' && [ $i -lt 10 ]; do sleep 1; i=$(( i + 1 )); done' %I
13 ExecStart=/usr/sbin/dhcp_probe -T -p ${PIDFILE} %I
14 ExecStopPost=/bin/rm -f ${PIDFILE}