| 1 | [Unit] |
| 2 | Description=Dynamically configure Linux netconsole |
| 3 | Documentation=man:netconsole-setup(8) |
| 4 | After=network-online.target |
| 5 | Wants=network-online.target |
| 6 | RequiresMountsFor=/usr |
| 7 | |
| 8 | [Service] |
| 9 | Type=oneshot |
| 10 | RemainAfterExit=yes |
| 11 | EnvironmentFile=-/etc/default/netconsole |
| 12 | ExecStart=/usr/sbin/netconsole-setup $NETCONSOLE_OPTS |
| 13 | ExecReload=/usr/sbin/netconsole-setup $NETCONSOLE_OPTS |
| 14 | |
| 15 | [Install] |
| 16 | WantedBy=multi-user.target |