Move creation of systemd units into build phase. Replace not only %name, also program_suffix. Change services to use template for systemd unit files To execute correctly systemd services, make them templates fixed at the build time. Still conflicts with potential alternatives. Solve also filter plugins to have suffix also.
12 lines
401 B
SYSTEMD
12 lines
401 B
SYSTEMD
[Unit]
|
|
Description=Set-up/destroy chroot environment for named (DNS)
|
|
BindsTo=named-chroot.service
|
|
Wants=named-setup-rndc.service
|
|
After=named-setup-rndc.service
|
|
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/libexec/%{name}/setup-named-chroot.sh /var/named/chroot on /etc/named-chroot.files
|
|
ExecStop=/usr/libexec/%{name}/setup-named-chroot.sh /var/named/chroot off /etc/named-chroot.files
|