| 1 | [Unit] |
| 2 | Description=GNU Network Utilities internet superserver |
| 3 | Documentation=man:inetutils-inetd(8) |
| 4 | Documentation=https://www.gnu.org/software/inetutils/manual/ |
| 5 | After=network-online.target |
| 6 | After=remote-fs.target |
| 7 | Wants=network-online.target |
| 8 | Wants=remote-fs.target |
| 9 | ConditionPathExists=/etc/inetd.conf |
| 10 | |
| 11 | [Service] |
| 12 | Type=simple |
| 13 | EnvironmentFile=-/etc/default/inetutils-inetd |
| 14 | ExecCondition=grep -qr "^[0-9A-Za-z/]" /etc/inetd.conf /etc/inetd.d/ |
| 15 | ExecStart=/usr/sbin/inetutils-inetd --foreground $INETD_OPTS |
| 16 | ExecReload=/bin/kill -HUP $MAINPID |
| 17 | Restart=on-failure |
| 18 | |
| 19 | [Install] |
| 20 | WantedBy=multi-user.target |
| 21 | Alias=inetd.service |