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