[Unit]
Description=Jiaowu Academic Affairs System
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
User=jiaowu
Group=jiaowu
WorkingDirectory=/opt/jiaowu
ExecStart=/opt/jiaowu/Jiaowu.Api

Restart=on-failure
RestartSec=5s
TimeoutStopSec=30s
SyslogIdentifier=jiaowu

Environment=DOTNET_EnableDiagnostics=0
NoNewPrivileges=true
PrivateTmp=true
PrivateDevices=true
ProtectSystem=full
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictSUIDSGID=true
LockPersonality=true
CapabilityBoundingSet=
AmbientCapabilities=
UMask=0077

[Install]
WantedBy=multi-user.target
