view hg-web/systemd/hg-web.service.template @ 269:de291f396881

install initial production config Copy the ignored repository config into /etc/mrjunejune on first deployment while preserving existing production configuration on later deploys. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Fri, 07 Aug 2026 13:08:10 -0700
parents c5129452493e
children
line wrap: on
line source

[Unit]
Description=Zenbu Mercurial forge
After=network.target

[Service]
Type=simple
User=__SERVICE_USER__
Group=__SERVICE_GROUP__
WorkingDirectory=__ACTIVE_PATH__
ExecStart=__ACTIVE_PATH__/hg-web/run_hg_web
Environment=HG_ALLOW_PUSH=__HG_ALLOW_PUSH__
Environment=HG_REPOSITORY_PATH=__REPOSITORY_PATH__
Restart=always
RestartSec=3
KillMode=control-group
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=full

[Install]
WantedBy=multi-user.target