Created
April 4, 2016 10:51
-
-
Save fredrikaverpil/b226566f25c9ea156e746e3ae359476f to your computer and use it in GitHub Desktop.
rc.local replacement for systemd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=/etc/rc.local.shutdown Compatibility | |
After=rc-local.service | |
[Service] | |
Type=oneshot | |
ExecStart=/etc/rc.local.shutdown | |
StandardInput=tty | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=shutdown.target | |
Also=rc-local.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[unit] | |
Description=/etc/rc.local Compatibility | |
[Service] | |
Type=oneshot | |
ExecStart=/etc/rc.local | |
ExecStop=/etc/rc.local.shutdown | |
TimeoutSec=0 | |
StandardInput=tty | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment