paulbsd-salt/states/go-aptproxy/qrz.service.j2

17 lines
548 B
Django/Jinja

## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{%- from "go-aptproxy/map.jinja" import go-aptproxy with context %}
[Unit]
Description=go-aptproxy
Documentation=https://git.paulbsd.com/paulbsd/go-aptproxy
After=network.target
[Service]
Type=simple
ExecStart={{ go-aptproxy.install_dir }}/go-aptproxy/go-aptproxy -directory {{ go-aptproxy.working_dir }} -port {{ go-aptproxy.port }}
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartForceExitStatus=SIGPIPE
KillMode=control-group
[Install]
WantedBy=multi-user.target