[Unit] Description=Scert SSL 证书管理核心服务 Documentation=file:///scert/docs/Scert-service-management.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 --config /scert/conf/scert.json serve KillSignal=SIGTERM TimeoutStopSec=30 Restart=on-failure UMask=0077 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/conf /scert/data /scert/log /scert/backups RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 [Install] WantedBy=multi-user.target