вторник, 4 февраля 2020 г.

Включение rc.local ubuntu 18.04

# mcedit /etc/systemd/system/rc-local.service

[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

# mcedit /etc/rc.local

#!/bin/sh -e

exit 0

# chmod +x /etc/rc.local
# systemctl enable rc-local
# systemctl start rc-local.service

Комментариев нет: