建立一個服務

範例模板

[Unit]
Description=<Description>

[Service]
Type=oneshot
User=<user>
Group=<groups>
ExecStart=<command>

[Install]
WantedBy=multi-user.target

解說

[Unit] 區塊

[Service] 區塊

 [Install] 區塊


Revision #2
Created 19 February 2024 12:03:55 by Nesquate
Updated 4 March 2024 10:53:22 by Nesquate