Debian Jessie systemd rc.local

Материал из support.qbpro.ru
Версия от 01:12, 16 октября 2016; imported>Vix (Новая страница: «Hello, list. I just thought I'd pass along something that I recently discovered. When using sysvinit as the init system, if the file /etc/rc.local exists and is …»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Версия для печати больше не поддерживается и может содержать ошибки обработки. Обновите закладки браузера и используйте вместо этого функцию печати браузера по умолчанию.

Hello, list.

I just thought I'd pass along something that I recently discovered. When using sysvinit as the init system, if the file /etc/rc.local exists and is executable, it will be invoked at the tail end of the boot process. But under systemd, this file is not executed during boot. Not by default anyway. Here is how I enabled it. (The following commands are executed as root.)

cd /lib/systemd/system/multi-user.target.wants ln -s ../rc-local.service rc-local.service

Now shutdown and reboot. /etc/rc.local will get executed this time. If this is the "wrong" way to do it, or someone knows a better way, please let me know.

this