summaryrefslogtreecommitdiffstats
path: root/debian/icinga2-bin.icinga2.service
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/icinga2-bin.icinga2.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/icinga2-bin.icinga2.service b/debian/icinga2-bin.icinga2.service
new file mode 100644
index 0000000..94d8ea3
--- /dev/null
+++ b/debian/icinga2-bin.icinga2.service
@@ -0,0 +1,21 @@
+[Unit]
+Description=Icinga host/service/network monitoring system
+Documentation=https://icinga.com/docs/icinga2/latest/
+After=network-online.target postgresql.service mariadb.service carbon-cache.service carbon-relay.service
+
+[Service]
+Type=notify
+NotifyAccess=all
+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 --close-stdio -e ${ICINGA2_ERROR_LOG}
+ExecReload=/usr/lib/icinga2/safe-reload /usr/lib/icinga2/icinga2
+TimeoutStartSec=30m
+KillMode=mixed
+PIDFile=/run/icinga2/icinga2.pid
+
+[Install]
+WantedBy=multi-user.target
+