vi /usr/lib/systemd/system/rc-local.service
[Unit]
Description=/etc/rc.d/rc.local Compatibility
Documentation=man:systemd-rc-local-generator(8)
ConditionFileIsExecutable=/etc/rc.d/rc.local
After=network.target
After=network-online.target
[Service]
Type=forking
ExecStart=/etc/rc.d/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no
[Install]
WantedBy=multi-user.target
--------------------------------------
vi /etc/rc.d/rc.local
mount /dev/sdc1 /data1TB3
mount -t nfs 1.1.1.49:/ /owl49
--------------------------------------
chmod 755 /etc/rc.d/rc.local
--------------------------------------
systemctl enable rc-local.service
--------------------------------------
Created symlink /etc/systemd/system/multi-user.target.wants/rc-local.service → /usr/lib/systemd/system/rc-local.service.
--------------------------------------
systemctl status rc-local.service
systemctl start rc-local.service
--------------------------------------
systemctl list-dependencies
--------------------------------------
vi /usr/lib/systemd/system/rc-local.service
After=network.target
After=network-online.target