Update 1.RockyLinux.md

This commit is contained in:
Ste Vaidis 2023-08-04 09:09:44 +03:00
parent 90491251c2
commit ed23529393

View File

@ -89,5 +89,42 @@ docker info -f '{{ .DockerRootDir }}' # /data/docker
mv /var/lib/docker /var/lib/docker.old
```
# Enable rc.local
`/etc/rc.local`
```sh
#!/bin/bash
# Add terminal commands here without sude
# Make sure the script will "exit 0" on success
# or any other value on error.
exit 0
```
`/etc/systemd/system/rc-local.service`
```sh
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
```
```sh
chmod +x /etc/rc.local
systemctl enable rc-local
systemctl start rc-local.service
systemctl status rc-local.service
```