>>to check if something was executed run:
[root@myhost ~]# systemctl status rc-local.service
rc-local.service - /etc/rc.d/rc.local Compatibility
Loaded: loaded (/usr/lib/systemd/system/rc-local.service; static; vendor preset: disabled)
Active: inactive (dead)


>>enabled service and set execute permissions
[root@myhost ~]# systemctl enable rc-local.service
[root@myhost ~]# chmod +x /etc/rc.d/rc.local

#after reboot
[root@myhost ~]# systemctl status rc-local.service
? rc-local.service - /etc/rc.d/rc.local Compatibility
Loaded: loaded (/usr/lib/systemd/system/rc-local.service; static; vendor preset: disabled)
Active: active (exited) since Mo 2017-01-09 16:32:30 CET; 26min ago
Process: 881 ExecStart=/etc/rc.d/rc.local start (code=exited, status=0/SUCCESS)

Jan 09 16:32:30 myhost systemd[1]: Starting /etc/rc.d/rc.local Compatibility...
Jan 09 16:32:30 myhost systemd[1]: Started /etc/rc.d/rc.local Compatibility.

computer2know :: thank you for your visit :: have a nice day :: © 2024