[Unit]
Description=Synapsis update maintenance page
After=network-online.target
Wants=network-online.target
Conflicts=synapsis.service

[Service]
Type=simple
User=synapsis
Group=synapsis
WorkingDirectory=/opt/synapsis
EnvironmentFile=/etc/synapsis.env
Environment=MAINTENANCE_APP_DIR=/opt/synapsis
ExecStart=/usr/bin/env node /opt/synapsis/deploy/maintenance-server.mjs
Restart=on-failure
RestartSec=1
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
