William A. Kennington III | b174c18 | 2021-11-03 14:54:51 -0700 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=gBMC DHCP Client |
Yuxiao Zhang | 32b5681 | 2024-06-14 15:17:45 -0700 | [diff] [blame] | 3 | After=network.target dhcp-done.service |
| 4 | Wants=dhcp-done.service |
William A. Kennington III | b174c18 | 2021-11-03 14:54:51 -0700 | [diff] [blame] | 5 | StartLimitIntervalSec=10 |
| 6 | StartLimitBurst=3 |
| 7 | |
| 8 | [Service] |
William A. Kennington III | 420c0bb | 2024-09-16 13:13:14 -0700 | [diff] [blame^] | 9 | Environment=INTF=gbmcbr |
| 10 | EnvironmentFile=-/run/gbmc-br-dhcp.env |
William A. Kennington III | 37705e2 | 2022-02-07 16:03:32 -0800 | [diff] [blame] | 11 | Restart=on-failure |
William A. Kennington III | b174c18 | 2021-11-03 14:54:51 -0700 | [diff] [blame] | 12 | RestartSec=5 |
Yuxiao Zhang | 32b5681 | 2024-06-14 15:17:45 -0700 | [diff] [blame] | 13 | ExecStartPre=/usr/bin/update-dhcp-status 'ONGOING' 'Starting dhcp process' |
William A. Kennington III | 420c0bb | 2024-09-16 13:13:14 -0700 | [diff] [blame^] | 14 | ExecStart=/usr/bin/udhcpc6 -f -q -O fqdn -O bootfile_url -O bootfile_param -i $INTF -s /usr/libexec/gbmc-br-dhcp.sh |
William A. Kennington III | b174c18 | 2021-11-03 14:54:51 -0700 | [diff] [blame] | 15 | |
| 16 | [Install] |
| 17 | WantedBy=multi-user.target |