mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
added systemd unit files for liveusb setup
This commit is contained in:
parent
24b7de3499
commit
909a7cd09c
2 changed files with 28 additions and 0 deletions
11
contrib/liveusb/dhclient.service
Normal file
11
contrib/liveusb/dhclient.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=dhclient on all interfaces
|
||||
Wants=network.target
|
||||
Before=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/sbin/dhclient -4
|
||||
|
||||
[Install]
|
||||
WantedBy=network.target
|
17
contrib/liveusb/setup.service
Normal file
17
contrib/liveusb/setup.service
Normal file
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=S2SS LiveUSB Image setup
|
||||
Requires=dhclient.service network.service
|
||||
After=dhclient.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/s2ss/contrib/liveusb/setup.sh
|
||||
RemainAfterExit=yes
|
||||
|
||||
TimeoutSec=120
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Reference in a new issue