document/文档/linux/baget/baget.service
2024-06-30 04:47:39 +08:00

41 lines
759 B
Desktop File
Raw 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=BaGet NuGet Server
After=network.target
[Service]
WorkingDirectory=/disk/BaGet/net8.0/
ExecStart=/disk/BaGet/net8.0/BaGet
Restart=always
# 如果网络服务崩溃请在10秒钟后重新启动服务
RestartSec=10
SyslogIdentifier=baget
User=root
[Install]
WantedBy=multi-user.target
[Unit]
Description=sunny-sports-api
After=network.target
[Service]
# 运行 设置环境变量
#指定服务的工作目录
WorkingDirectory=/disk/BaGet/net8.0
# run
ExecStart=/disk/BaGet/net8.0/BaGet
SyslogIdentifier=baget
User=root
# 打开资源限制infinity 默认会到65535
LimitNOFILE=1048576
LimitNPROC=infinity
LimitCORE=infinity
# 自动检查重启10秒后重启
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target