proxmox-backup/etc/proxmox-backup-proxy.service.in
Thomas Lamprecht 04b053d87e server: write main daemon PID to run directory
so that we can easily get the main PID of the last recently launched
daemon. Will be used to get the control socket of that one for access
lgo rotate in a future patch

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-02 19:50:24 +01:00

19 lines
407 B
SYSTEMD

[Unit]
Description=Proxmox Backup API Proxy Server
Wants=network-online.target
After=network.target
Wants=proxmox-backup.service
After=proxmox-backup.service
[Service]
Type=notify
ExecStart=%LIBEXECDIR%/proxmox-backup/proxmox-backup-proxy
ExecReload=/bin/kill -HUP $MAINPID
PIDFile=/run/proxmox-backup/proxy.pid
Restart=on-failure
User=%PROXY_USER%
Group=%PROXY_USER%
[Install]
WantedBy=multi-user.target