document/文档/其它/sunny-sports-api.service test
2024-06-30 04:47:39 +08:00

21 lines
467 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[Unit]
Description=sunny-sports-api
After=network.target
[Service]
# 运行 设置环境变量
#指定服务的工作目录
WorkingDirectory=/disk/sunnysportsapi
# run
ExecStart=/disk/sunnysportsapi/SunnySports.Api
SyslogIdentifier=SunnySportsApi
User=root
# 打开资源限制infinity 默认会到65535
LimitNOFILE=1048576
LimitNPROC=infinity
LimitCORE=infinity
# 自动检查重启10秒后重启
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target