Skip to main content

Raymii.org Logo (IEC resistor symbol)logo

Quis custodiet ipsos custodes?
Home | About | All pages | RSS Feed | Gopher

rc.local support on Arch Linux with systemd

Published: 13-01-2014 | Author: Remy van Elst | Text only version of this article


Table of Contents


Arch Linux uses systemd. Therefore, init functions like rc.local are notsupported anymore. This systemd service allows you to have support for/etc/rc.local.

If you like this article, consider sponsoring me by trying out a Digital OceanVPS. With this link you'll get $100 credit for 60 days). (referral link)

Edit /usr/lib/systemd/system/rc-local.service:

[Unit]Description=/etc/rc.local compatibility[Service]Type=oneshotExecStart=/etc/rc.localRemainAfterExit=yes[Install]WantedBy=multi-user.target

Enable it:

systemctl enable rc-local.service
Tags: arch, fedora, init, rc, systemd, tutorials, upstart