Skip to content

Instantly share code, notes, and snippets.

@fredrikaverpil
Created April 4, 2016 10:51
Show Gist options
  • Save fredrikaverpil/b226566f25c9ea156e746e3ae359476f to your computer and use it in GitHub Desktop.
Save fredrikaverpil/b226566f25c9ea156e746e3ae359476f to your computer and use it in GitHub Desktop.
rc.local replacement for systemd
[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
[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