view hg-web/systemd/hg-web.service.template @ 270:358dd5950985

sync production config on every deploy Always install the ignored repository .config into /etc/mrjunejune before promoting the new bundle. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Fri, 07 Aug 2026 13:16:47 -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