2026-10-01 08:05:56 +02:00
|
|
|
[Unit]
|
|
|
|
|
Description=PrivaPub ActivityPub server (privapub.thepra.dev)
|
|
|
|
|
After=network-online.target privapub-mongod.service
|
|
|
|
|
Wants=network-online.target
|
|
|
|
|
Requires=privapub-mongod.service
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=exec
|
|
|
|
|
User=www-data
|
|
|
|
|
Group=www-data
|
|
|
|
|
WorkingDirectory=/var/www/privapub.thepra.dev
|
|
|
|
|
ExecStart=/var/www/privapub.thepra.dev/PrivaPub
|
|
|
|
|
Environment=ASPNETCORE_ENVIRONMENT=Production
|
|
|
|
|
Environment=DOTNET_CLI_TELEMETRY_OPTOUT=1
|
|
|
|
|
Restart=always
|
|
|
|
|
RestartSec=5
|
2026-10-07 11:55:17 +02:00
|
|
|
# a restore asked for stops the service, and the next start carries it out; one that failed three times exits 75 and
|
|
|
|
|
# waits for someone to look (journalctl -u privapub, PrivaPub admin restore --status)
|
|
|
|
|
RestartPreventExitStatus=75
|
2026-10-07 10:48:56 +02:00
|
|
|
# its own /tmp: ffmpeg's and the uploads' temporary files are nobody else's
|
|
|
|
|
PrivateTmp=true
|
2026-10-01 08:05:56 +02:00
|
|
|
SyslogIdentifier=privapub
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|