Scert/deploy/systemd/Scert-admin.service

29 lines
840 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=Scert-admin 临时密码重置入口激活器
Documentation=file:///scert/docs/Scert-admin服务管理说明.md
After=network-online.target
Wants=network-online.target
ConditionPathExists=/scert/conf/scert.json
[Service]
Type=simple
User=Scert
Group=Scert
WorkingDirectory=/scert
ExecStart=/scert/scert-admin --config /scert/conf/scert.json
KillSignal=SIGTERM
TimeoutStopSec=15
Restart=no
RuntimeMaxSec=30min
UMask=0077
NoNewPrivileges=yes
PrivateTmp=yes
ProtectHome=yes
ProtectSystem=full
ReadWritePaths=/scert/data /scert/log
RestrictAddressFamilies=AF_UNIX
# Scert-admin 不监听任何 TCP/UDP 端口,只维护主服务 /reset 路径的短时激活租约。
# 刻意不提供 [Install] 段,禁止通过 systemctl enable 纳入开机启动。
# 不配置 ExecReload,reload 不属于受支持的控制操作。