Skip to content
Snippets Groups Projects
Commit 17c95c01 authored by Markus Frosch's avatar Markus Frosch
Browse files

Add systemd service

parent 44a4d14f
Branches master
No related tags found
No related merge requests found
Pipeline #22507 failed
......@@ -2,7 +2,9 @@ Source: icingaweb2-module-reporting
Section: admin
Priority: optional
Maintainer: Icinga Development Team <info@icinga.com>
Build-Depends: debhelper (>= 9)
Build-Depends:
debhelper (>= 9),
dh-systemd
Standards-Version: 3.9.8
Homepage: https://www.icinga.com
......
[Unit]
Description=Icinga Reporting Scheduler
[Service]
Type=simple
User=www-data
ExecStart=/usr/bin/icingacli reporting schedule run
Restart=on-success
[Install]
WantedBy=multi-user.target
......@@ -5,11 +5,17 @@ MODULE_NAME := reporting
MODULE_PATH := /usr/share/icingaweb2/modules/$(MODULE_NAME)
%:
dh $@
dh $@ --with systemd
override_dh_auto_install:
mkdir debian/tmp
mkdir -p debian/tmp$(MODULE_PATH)
find -maxdepth 1 ! -name debian ! -name ".*" -exec cp -rvt debian/tmp$(MODULE_PATH) {} \;
override_dh_systemd_enable:
dh_systemd_enable --no-enable --name=icinga-$(MODULE_NAME)
override_dh_systemd_start:
dh_systemd_start --no-start --name=icinga-$(MODULE_NAME)
# vi: ts=4 sw=4 noexpandtab :
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment