Files
compass-adapters/chef/cookbooks/collectd/templates/default/collectd_service.erb
xiaodongwang 20dcf7c257 update adapter config to support multi os versions
Change-Id: Icfd90d09ed55f3f0723a77642cc803d39440896d
2015-01-22 13:59:51 -08:00

26 lines
626 B
Plaintext

[Unit]
Description=Collectd - statistics collection daemon
After=local-fs.target network.target
Requires=local-fs.target network.target
[Service]
ExecStart=/usr/sbin/collectdmon
# Tell systemd it will receive a notification from collectd over it's control
# socket once the daemon is ready. See systemd.service(5) for more details.
#Type=notify
#NotifyAccess=main
Type=forking
RemainAfterExit=yes
# Restart the collectd daemon after a 10 seconds delay, in case it crashes.
Restart=always
RestartSec=10
# Send all console messages to syslog.
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target