pollux/dist/pollux.service
Jeena b9380483d2 Remove complex SIGHUP reload feature, use simple restart instead
- Remove tokio signal handling and mutex-based TLS acceptor reloading
- Simplify main loop back to basic connection acceptance
- Update systemd service to remove ExecReload
- Change certbot hook to use systemctl restart instead of reload
- Maintain <1s restart time for certificate updates
- Eliminate user confusion about partial config reloading
2026-01-16 22:09:51 +00:00

25 lines
No EOL
764 B
Desktop File

[Unit]
Description=Pollux Gemini Server
After=network.target
Wants=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/pollux
Restart=on-failure
RestartSec=5
User=gemini
Group=gemini
NoNewPrivileges=yes
ProtectHome=yes
ProtectSystem=strict
ReadOnlyPaths=/etc/pollux /etc/letsencrypt/live/example.com /var/www/example.com
# NOTE: Adjust /etc/letsencrypt/live/example.com and /var/www/example.com to match your config
# The server needs read access to config, certificates, and content files
# NOTE: Adjust paths to match your config:
# - /etc/letsencrypt/live/example.com for Let's Encrypt certs
# - /var/www/example.com for your content root
# The server needs read access to config, certificates, and content files
[Install]
WantedBy=multi-user.target