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

Add systemd service

parent b3184967
No related branches found
No related tags found
No related merge requests found
Pipeline #22495 failed
......@@ -2,7 +2,9 @@ Source: icingaweb2-module-x509
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 Certificate Monitoring Module Jobs Runner
[Service]
Type=simple
User=www-data
ExecStart=/usr/bin/icingacli x509 jobs run
Restart=on-success
[Install]
WantedBy=multi-user.target
......@@ -5,11 +5,17 @@ MODULE_NAME := x509
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