view hg-web/systemd/hg-web.service.template @ 249:c5129452493e

[deploy] Bundle Mercurial with hg-web Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Tue, 04 Aug 2026 04:16:45 -0700
parents
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