1. ubuntu systemd/rc-local.service

rc-local service が使えるか試す。行けそうだ。-- ToshinoriMaeno 2022-09-04 03:13:25

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.

1.1. history


CategoryDns CategoryWatch CategoryTemplate

MoinQ: DJB/daemontools/ubuntu/rc.local (last edited 2022-09-04 03:28:08 by ToshinoriMaeno)