From: Marc Fournier Date: Tue, 1 Sep 2015 19:22:11 +0000 (+0200) Subject: rename systemd service file to respect naming conventions. X-Git-Tag: collectd-5.5.0-3~2^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1dad48e65633b4c698be2dd622bfdd3013ffafa3;p=pkg-collectd.git rename systemd service file to respect naming conventions. --- diff --git a/debian/changelog b/debian/changelog index 60835f5..81cf056 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,9 @@ collectd (5.5.0-3) UNRELEASED; urgency=medium - Strip out non-deterministic bits out of generated jar files. * debian/collectd-core.overrides: - Update 'capitalization-error-in-description' lintian override. + * debian/rules, debian/collectd-core.collectd.service: + - Rename systemd service file to collectd-core.collectd.service, to honour + debhelper's naming convention. -- Marc Fournier Tue, 25 Aug 2015 06:55:52 +0200 diff --git a/debian/collectd-core.collectd.service b/debian/collectd-core.collectd.service new file mode 100644 index 0000000..2fee302 --- /dev/null +++ b/debian/collectd-core.collectd.service @@ -0,0 +1,18 @@ +[Unit] +Description=Statistics collection and monitoring daemon +After=local-fs.target network.target +Requires=local-fs.target network.target +Documentation=man:collectd(1) +Documentation=man:collectd.conf(5) +Documentation=https://collectd.org + +[Service] +Type=notify +NotifyAccess=main +EnvironmentFile=-/etc/default/collectd +ExecStart=/usr/sbin/collectd +Restart=always +RestartSec=10 + +[Install] +WantedBy=multi-user.target diff --git a/debian/collectd.service b/debian/collectd.service deleted file mode 100644 index 2fee302..0000000 --- a/debian/collectd.service +++ /dev/null @@ -1,18 +0,0 @@ -[Unit] -Description=Statistics collection and monitoring daemon -After=local-fs.target network.target -Requires=local-fs.target network.target -Documentation=man:collectd(1) -Documentation=man:collectd.conf(5) -Documentation=https://collectd.org - -[Service] -Type=notify -NotifyAccess=main -EnvironmentFile=-/etc/default/collectd -ExecStart=/usr/sbin/collectd -Restart=always -RestartSec=10 - -[Install] -WantedBy=multi-user.target diff --git a/debian/rules b/debian/rules index 3960dff..0da5b2b 100755 --- a/debian/rules +++ b/debian/rules @@ -281,7 +281,7 @@ binary-arch: build install-arch && rm -f lib/Collectd/Graph/File.pm lib/Collectd/Graph/Filter.pm \ && rm -f lib/Collectd/Graph/MetaData.pm ) dh_installdebconf -a - dh_systemd_enable -pcollectd-core --name=collectd collectd.service + dh_systemd_enable -pcollectd-core --name=collectd dh_installinit -pcollectd-core --name=collectd -- defaults 95 dh_systemd_start -pcollectd-core dh_link -a