File icinga-fix-systemd-services.patch of Package icinga.9111

Index: icinga-1.12.0/icinga-systemd.in
===================================================================
--- icinga-1.12.0.orig/icinga-systemd.in
+++ icinga-1.12.0/icinga-systemd.in
@@ -4,9 +4,11 @@ After=syslog.target network.target ido2d
 
 [Service]
 EnvironmentFile=@systemd_sysconfig_dir@/icinga
-ExecStartPre=@bindir@/icinga $ICINGA_VERIFY_OPTS
-ExecStart=@bindir@/icinga $ICINGA_OPTS
+ExecStartPre=/usr/lib/icinga/icinga-exec-start-pre
+ExecStartPre=@bindir@/icinga -v @sysconfdir@/icinga.cfg
+ExecStart=@bindir@/icinga @sysconfdir@/icinga.cfg
 ExecReload=/bin/kill -HUP $MAINPID
 
 [Install]
 WantedBy=multi-user.target
+Alias=monitoring_daemon.service
Index: icinga-1.12.0/ido2db-systemd.in
===================================================================
--- icinga-1.12.0.orig/ido2db-systemd.in
+++ icinga-1.12.0/ido2db-systemd.in
@@ -4,7 +4,8 @@ After=syslog.target network.target
 
 [Service]
 EnvironmentFile=@systemd_sysconfig_dir@/icinga
-ExecStart=@bindir@/ido2db -f $IDO2DB_OPTS
+ExecStartPre=/usr/lib/icinga/ido2db-exec-start-pre
+ExecStart=@bindir@/ido2db -f -c @sysconfdir@/ido2db.cfg
 ExecReload=/bin/kill -HUP $MAINPID
 
 [Install]
openSUSE Build Service is sponsored by