Commit 50619381 authored by Mathieu Mirmont's avatar Mathieu Mirmont

opendnssec-*.service: Fix service files

Fix the ConditionPathExists statements in the systemd service files.
Those must be in the [Unit] section and not the [Service] section.
parent e97361db
[Unit]
Description=OpenDNSSEC Enforcer daemon
After=network.target
ConditionPathExists=!/etc/opendnssec/prevent-startup
[Service]
Type=simple
EnvironmentFile=-/etc/default/opendnssec
EnvironmentFile=-/etc/default/opendnssec-enforcer
ExecStart=/usr/sbin/ods-enforcerd -d $DAEMON_ARGS $ODS_ENFORCERD_OPT
ConditionPathExists=!/etc/opendnssec/prevent-startup
[Install]
WantedBy=multi-user.target
[Unit]
Description=OpenDNSSEC signer daemon
After=network.target ods-enforcerd.service
ConditionPathExists=!/etc/opendnssec/prevent-startup
[Service]
Type=simple
EnvironmentFile=-/etc/default/opendnssec
EnvironmentFile=-/etc/default/opendnssec-signer
ExecStart=/usr/sbin/ods-signerd -d $DAEMON_ARGS $ODS_SIGNERD_OPT
ConditionPathExists=!/etc/opendnssec/prevent-startup
[Install]
WantedBy=multi-user.target
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment