Code

rules: Fix the arch selection for enabling the gRPC plugin.
[pkg-collectd.git] / debian / collectd-core.collectd.service
index 2fee302f0e5b16cc1af1bc33166d9129a5e8e16d..e179f76c06d2040a610c3defc75e0c1e4fde3eea 100644 (file)
@@ -2,6 +2,7 @@
 Description=Statistics collection and monitoring daemon
 After=local-fs.target network.target
 Requires=local-fs.target network.target
+ConditionPathExists=/etc/collectd/collectd.conf
 Documentation=man:collectd(1)
 Documentation=man:collectd.conf(5)
 Documentation=https://collectd.org
@@ -10,6 +11,7 @@ Documentation=https://collectd.org
 Type=notify
 NotifyAccess=main
 EnvironmentFile=-/etc/default/collectd
+ExecStartPre=/usr/sbin/collectd -t
 ExecStart=/usr/sbin/collectd
 Restart=always
 RestartSec=10