📜  创建 systemd 单元文件 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:37.706000             🧑  作者: Mango

代码示例1
sles151:/etc/systemd/system # cat /etc/systemd/system/test.service
[Unit]
Description=example systemd service unit file.

[Service]
ExecStart=/bin/bash /usr/sbin/example.sh

[Install]
WantedBy=multi-user.target