rc.local compatibility in Arch Linux

Arch Linux uses systemd by default, and initscripts is no longer supported.

However, rc.local is still useful under various conditions.

To make it work, create and edit /usr/lib/systemd/system/rc-local.service

Edit /etc/rc.local as usual.

Do not forget to make it executable.

Finally, enable the service.

You can also handle dependencies by modifying the .service file’s [unit] section to allow proper execution of stuff in /etc/rc.local.

If /etc/rc.local is designed to connect Internet and do something to network interface, you can put After=network.target in the [unit] section, meaning it will only start AFTER network is configured.


May 24, 2013 @ 00:00

Leave a Reply

Your email address will not be published. Required fields are marked *

Please calculate * Time limit is exhausted. Please reload CAPTCHA.