use libexecdir for service binaries

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2019-02-01 10:05:14 +01:00
parent bed78ccd63
commit 304db5da3d
5 changed files with 6 additions and 5 deletions

View File

@ -12,7 +12,7 @@ clean:
.SUFFIXES: .service.in .service
.service.in.service:
sed \
-e 's!%LIBDIR%!$(LIBDIR)!g' \
-e 's!%LIBEXECDIR%!$(LIBEXECDIR)!g' \
-e 's!%PROXY_USER%!$(PROXY_USER)!g' \
$< >$@.tmp
mv $@.tmp $@

View File

@ -6,7 +6,7 @@ Requires=proxmox-backup.service
[Service]
Type=simple
ExecStart=%LIBDIR%/proxmox-backup/proxmox-backup-proxy
ExecStart=%LIBEXECDIR%/proxmox-backup/proxmox-backup-proxy
Restart=on-failure
User=%PROXY_USER%
Group=%PROXY_USER%

View File

@ -5,7 +5,7 @@ After=network.target syslog.target
[Service]
Type=simple
ExecStart=%LIBDIR%/proxmox-backup/proxmox-backup-api
ExecStart=%LIBEXECDIR%/proxmox-backup/proxmox-backup-api
Restart=on-failure
[Install]