lundi 6 mars 2017

MANJARO: SOS! RC.LOCAL NOT WORKING ANYMORE!

In some distros using systemd (like Manjaro), rc.local file is here but is disabled so it doesn't work anymore...


To re-enable rc.local using systemd


1. Create a service file: /etc/systemd/system/rc-local.service


$ sudo gedit /etc/systemd/system/rc-local.service

2. Save it

3. copy & past in the file:


[Unit]
Description=/etc/rc.local compatibility

[Service]
Type=simple
ExecStart=/etc/rc.local
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

4. Save-it again

4. To enable it:


 $ sudo systemctl enable rc-local.service 

6. reboot your PC

Aucun commentaire:

Enregistrer un commentaire

Remarque : Seul un membre de ce blog est autorisé à enregistrer un commentaire.