Files
SocialPub/deploy/systemd/privapub.service
T

25 lines
829 B
Desktop File
Raw Normal View History

[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
# 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
# its own /tmp: ffmpeg's and the uploads' temporary files are nobody else's
PrivateTmp=true
SyslogIdentifier=privapub
[Install]
WantedBy=multi-user.target