Lernstick / root-vanished

Apache License 2.0
0 stars 0 forks source link

Install service file #2

Open stapelberg opened 8 years ago

stapelberg commented 8 years ago

This is the service file which I’ve used in manual testing:

[Unit]
Description=root-vanished

[Service]
LimitMEMLOCK=infinity
ExecStart=/usr/bin/root-vanished --mountpoint=/lib/live/mount/medium --reboot

[Install]
WantedBy=default.target

This should go into /usr/lib/systemd/user/ (see https://wiki.archlinux.org/index.php/Systemd/User) and should be enable for the “user” user in lernstick-specific packaging.