## page was renamed from rc.local ## page was copied from DnsTemplate ##master-page:HelpTemplate <> <> = ubuntu systemd/rc-local.service = rc-local service が使えるか試す。行けそうだ。-- ToshinoriMaeno <> reboot 時も実行された。(次は rc.local でなにを実行するか。) {{{ tmaeno@tokyo:/etc/systemd$ sudo chmod 755 /etc/rc.local tmaeno@tokyo:/etc/systemd$ ls -l /etc/rc.local -rwxr-xr-x 1 root root 54 Sep 3 20:42 /etc/rc.local 実行フラグをたてておく。 tmaeno@tokyo:/etc/systemd$ sudo systemctl restart rc-local tmaeno@tokyo:/etc/systemd$ sudo systemctl status rc-local ● rc-local.service - /etc/rc.local Compatibility Loaded: loaded (/lib/systemd/system/rc-local.service; static) Drop-In: /usr/lib/systemd/system/rc-local.service.d └─debian.conf Active: active (exited) since Sun 2022-09-04 12:11:15 JST; 6s ago Docs: man:systemd-rc-local-generator(8) Process: 2568 ExecStart=/etc/rc.local start (code=exited, status=0/SUCCESS) CPU: 2ms Sep 04 12:11:15 tokyo systemd[1]: Starting /etc/rc.local Compatibility... Sep 04 12:11:15 tokyo systemd[1]: Started /etc/rc.local Compatibility. }}} == history == {{{ }}} ---- CategoryDns CategoryWatch CategoryTemplate