48 lines
1.2 KiB
Desktop File
48 lines
1.2 KiB
Desktop File
[Unit]
|
||
Description=Scert SSL 证书管理核心服务
|
||
Documentation=file:///scert/docs/Scert-service-management.md
|
||
After=network-online.target
|
||
Wants=network-online.target
|
||
Wants=Scert-storage.socket
|
||
After=Scert-storage.socket
|
||
|
||
[Service]
|
||
Type=simple
|
||
User=Scert
|
||
Group=Scert
|
||
WorkingDirectory=/scert
|
||
ExecStart=/scert/scert --config /scert/conf/scert.json serve
|
||
Environment=SCERT_BOOTSTRAP_FIREWALL_MODE=external
|
||
KillSignal=SIGTERM
|
||
TimeoutStopSec=30
|
||
Restart=on-failure
|
||
UMask=0077
|
||
RuntimeDirectory=scert
|
||
RuntimeDirectoryMode=0700
|
||
NoNewPrivileges=yes
|
||
CapabilityBoundingSet=
|
||
AmbientCapabilities=
|
||
PrivateTmp=yes
|
||
PrivateDevices=yes
|
||
ProtectHome=yes
|
||
ProtectSystem=strict
|
||
ProtectHostname=yes
|
||
ProtectClock=yes
|
||
ProtectKernelTunables=yes
|
||
ProtectKernelModules=yes
|
||
ProtectControlGroups=yes
|
||
ProtectKernelLogs=yes
|
||
LockPersonality=yes
|
||
MemoryDenyWriteExecute=yes
|
||
RestrictNamespaces=yes
|
||
RestrictRealtime=yes
|
||
RestrictSUIDSGID=yes
|
||
RemoveIPC=yes
|
||
SystemCallArchitectures=native
|
||
ReadWritePaths=/ssl/scert /scert/conf /scert/data /scert/log /scert/backups
|
||
# 初始化临时证书读取本机网卡地址需要 NETLINK_ROUTE,不授予网络管理能力。
|
||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
|
||
|
||
[Install]
|
||
WantedBy=multi-user.target
|