Настройка и активация rc.local

rc.local

Настройка и активация rc.local

sudo systemctl edit --full rc-local

---------------------------------------

Unit

Description=/etc/rc.local Compatibility

ConditionPathExists=/etc/rc.local

Documentation=man:systemd-rc-local-generator8

ConditionFileIsExecutable=/etc/rc.local

After=network.target

Service

Type=forking

ExecStart=/etc/rc.local start

TimeoutSec=0

RemainAfterExit=yes

GuessMainPID=no

StandardOutput=tty

SysVStartPriority=99

Install

WantedBy=multi-user.target

------------------------------

systemctl enable rc-local

echo -e '#!/bin/bash\n/usr/local/bin/evs-gate\nexit 0' >> /etc/rc.local; chmod u+x /etc/rc.local