diff --git a/dashing-icinga2.service b/dashing-icinga2.service new file mode 100644 index 0000000..45ef051 --- /dev/null +++ b/dashing-icinga2.service @@ -0,0 +1,12 @@ +[Unit] +Description=Dashing-Icinga2 host/service/network monitoring system +After=syslog.target network.target postgresql.service mariadb.service carbon-cache.service icinga2.service + +[Service] +Type=forking +WorkingDirectory=/usr/share/dashing-icinga2 +ExecStart=/usr/local/bin/dashing start -d -p 8005 --pid /var/run/thin.pid +ExecStop=/usr/local/bin/dashing stop + +[Install] +WantedBy=multi-user.target diff --git a/icinga2-dashing b/icinga2-dashing new file mode 100644 index 0000000..aa4a668 --- /dev/null +++ b/icinga2-dashing @@ -0,0 +1,11 @@ +/usr/share/icinga2-dashing/log/thin.log { + daily + rotate 7 + compress + delaycompress + missingok + notifempty + postrotate + /bin/kill -USR1 $(cat /var/run/thin.pid 2> /dev/null) 2> /dev/null || true + endscript +}