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
Ajoutez un commentaire mais en bon Français ou éventuellement en bon Anglais. Les commentaires en langage SMS seront supprimés.