mirror of
https://git.undefined-dev.fr/Blendman974/faceclaw.git
synced 2026-11-19 21:03:09 +00:00
22 lines
523 B
Desktop File
22 lines
523 B
Desktop File
# Template: setup-server.sh fills in @USER@ and @DIR@ and installs it as
|
|
# /etc/systemd/system/faceclaw-stats.service.
|
|
[Unit]
|
|
Description=Faceclaw stats server (stats.faceclaw.org)
|
|
After=network.target postgresql.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=@USER@
|
|
WorkingDirectory=@DIR@
|
|
EnvironmentFile=@DIR@/deploy/stats.env
|
|
ExecStart=@DIR@/deploy/run.sh
|
|
# deploy.sh restarts the server by ending the process.
|
|
Restart=always
|
|
RestartSec=2
|
|
NoNewPrivileges=yes
|
|
PrivateTmp=yes
|
|
ProtectSystem=full
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|