File: dhcp-probe%40.service

package info (click to toggle)
dhcp-probe 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,304 kB
  • sloc: sh: 4,783; ansic: 2,402; perl: 381; xml: 51; makefile: 50
file content (14 lines) | stat: -rw-r--r-- 558 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=dhcp-probe daemon to survey DHCP/BootP server on interface %I
Documentation=man:dhcp-probe(8)
PartOf=dhcp-probe.service
Requires=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device

[Service]
RuntimeDirectory=dhcp-probe
RuntimeDirectoryPreserve=yes
PIDFile=/run/dhcp-probe/dhcp_probe.pid.%I
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
ExecStart=/usr/sbin/dhcp_probe -T -p ${PIDFILE} %I
ExecStopPost=/bin/rm -f ${PIDFILE}