Package: monit Version: 1:5.6-2 Severity: wishlist Tags: patch User: pkg-systemd-maintain...@lists.alioth.debian.org Usertags: systemd-units X-Debbugs-CC: pkg-systemd-maintain...@lists.alioth.debian.org
Hi, the attached patch adds support for systemd in monit. It uses the service file provided by upstream. The dh_installinit line was dropped in this patch, because it is not needed anymore and only triggers a warning at installation time. Best regards Christian
diff -Nru monit-5.6/debian/control monit-5.6/debian/control --- monit-5.6/debian/control 2014-02-19 01:45:08.000000000 +0100 +++ monit-5.6/debian/control 2014-02-19 19:02:40.000000000 +0100 @@ -2,7 +2,7 @@ Section: admin Priority: optional Maintainer: Sergey B Kirpichev <skirpic...@gmail.com> -Build-Depends: debhelper (>= 9), libssl-dev, libpam-dev, libkvm-dev [kfreebsd-any], autotools-dev +Build-Depends: debhelper (>= 9), libssl-dev, libpam-dev, libkvm-dev [kfreebsd-any], autotools-dev, dh-systemd # this strange things was installed only on ia64 buildd: Build-Conflicts: automake, autoconf Standards-Version: 3.9.5 diff -Nru monit-5.6/debian/monit.install monit-5.6/debian/monit.install --- monit-5.6/debian/monit.install 2014-02-19 01:45:08.000000000 +0100 +++ monit-5.6/debian/monit.install 2014-02-19 19:02:40.000000000 +0100 @@ -1,3 +1,4 @@ monitrc etc/monit/ debian/monitrc.d/* etc/monit/monitrc.d/ debian/templates/* etc/monit/templates/ +contrib/monit.service /lib/systemd/system diff -Nru monit-5.6/debian/rules monit-5.6/debian/rules --- monit-5.6/debian/rules 2014-02-19 01:45:08.000000000 +0100 +++ monit-5.6/debian/rules 2014-02-19 19:03:15.000000000 +0100 @@ -1,15 +1,12 @@ #!/usr/bin/make -f %: - dh $@ --with autotools_dev + dh $@ --with autotools_dev,systemd override_dh_auto_configure: dh_auto_configure -- \ --sysconfdir=/etc/monit -override_dh_installinit: - dh_installinit -- "start 99 2 3 4 5 . stop 01 0 1 6 ." - override_dh_fixperms: dh_fixperms chmod 600 debian/monit/etc/monit/monitrc