2013-10-03 16:16:18 +02:00
|
|
|
# This file is part of package rrdtool.
|
|
|
|
#
|
|
|
|
# Description:
|
|
|
|
#
|
|
|
|
# Used to start rrdcached Data caching daemon for rrdtool
|
|
|
|
#
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=RRDcached RRD Data Caching Service
|
|
|
|
Requires=var-run.mount
|
|
|
|
Wants=network.target
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2013-10-04 14:07:36 +02:00
|
|
|
Type=forking
|
2013-10-03 16:16:18 +02:00
|
|
|
ExecStartPre=-/bin/echo 'Starting RRD data caching service (rrdtools - rrdcached)'
|
|
|
|
ExecStartPre=/bin/sh -c "/usr/share/rrdcached/rrdcached-systemd-pre"
|
|
|
|
EnvironmentFile=-/etc/sysconfig/rrdcached
|
2014-02-09 20:33:54 +01:00
|
|
|
ExecStart=/usr/bin/rrdcached -s $RRDCACHED_GROUP -b "$RRDCACHED_CHROOT_DIR" -p /run/rrdcached/rrdcached.pid -l $RRDCACHED_ADDRESS -m $RRDCACHED_SOCKET_MASK -w $RRDCACHED_DISKWRITE -z $RRDCACHED_DELAY -t $RRDCACHED_WRITE_THREADS $RRDCACHED_OPTIONS
|
2013-10-03 16:16:18 +02:00
|
|
|
Restart=always
|
|
|
|
RestartSec=1
|
2014-02-09 20:33:54 +01:00
|
|
|
PIDFile=/run/rrdcached/rrdcached.pid
|
2013-10-03 16:16:18 +02:00
|
|
|
TimeoutStopSec=10
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|