文|MESeraph
01 |
service文件目錄:
/lib/systemd/system
/etc/systemd/system
02 | 命令
- sudo systemctl start xxx
- sudo systemctl stop xxx
- sudo systemctl kill xxx
- sudo systemctl restart xxx
03 | 示例
[Unit]
Description=logsvr service
[Service]
User=nvidia
ExecStart=/opt/hyperis/nanosvr/monitorsvr/logsvr
Restart=always
RestartSec=10