Commit 1070f136 authored by Markus Frosch's avatar Markus Frosch
Browse files

Migrate to included systemd unit

parent 7be559de
......@@ -12,6 +12,7 @@ Build-Depends: bash-completion,
cmake (>= 3.2.2) | pkg-config,
debhelper (>= 9),
dh-systemd (>= 1.5),
libsystemd-dev,
flex,
g++ (>= 1.96),
libboost-dev,
......
[Unit]
Description=Icinga host/service/network monitoring system
After=postgresql.service mariadb.service carbon-cache.service mysql.service syslog.target network.target
[Service]
Type=simple
UMask=0007
EnvironmentFile=/usr/lib/icinga2/icinga2
EnvironmentFile=/etc/default/icinga2
ExecStartPre=/usr/lib/icinga2/prepare-dirs /usr/lib/icinga2/icinga2
ExecStart=/usr/sbin/icinga2 daemon -e ${ICINGA2_ERROR_LOG}
ExecReload=/usr/lib/icinga2/safe-reload /usr/lib/icinga2/icinga2
PIDFile=/run/icinga2/icinga2.pid
[Install]
WantedBy=multi-user.target
......@@ -4,6 +4,6 @@ debian/tmp/etc/icinga2
debian/tmp/etc/logrotate.d
tools/syntax/nano/icinga2.nanorc usr/share/nano
usr/share/icinga2
etc/sysconfig/icinga2 usr/lib/icinga2
usr/lib/icinga2/prepare-dirs
usr/lib/icinga2/safe-reload
usr/lib/systemd/system/icinga2.service lib/systemd/system
......@@ -44,6 +44,7 @@ override_dh_auto_configure:
-- \
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DICINGA2_SYSCONFIGFILE=/etc/default/icinga2 \
-DICINGA2_RUNDIR=/run \
-DICINGA2_USER=nagios \
-DICINGA2_GROUP=nagios \
......@@ -51,6 +52,7 @@ override_dh_auto_configure:
-DICINGA2_GIT_VERSION_INFO=false \
-DICINGA2_PLUGINDIR=/usr/lib/nagios/plugins \
-DICINGA2_WITH_STUDIO=true \
-DUSE_SYSTEMD=ON \
$(UNITY_BUILD) \
$(LTO_BUILD)
......
Supports Markdown
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