serviced config etc files for rrdtool
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 2 Jul 2012 15:05:32 +0000 (15:05 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 2 Jul 2012 15:05:32 +0000 (15:05 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2292 a5681a0c-68f1-0310-ab6d-d61299d08faa

etc/rrdcached.service.in [new file with mode: 0644]
etc/rrdcached.socket.in [new file with mode: 0644]

diff --git a/etc/rrdcached.service.in b/etc/rrdcached.service.in
new file mode 100644 (file)
index 0000000..3b6f309
--- /dev/null
@@ -0,0 +1,19 @@
+#
+# To customize, copy this file to /etc/systemd/system/
+# and edit there
+#
+
+[Unit]
+Description=Data caching daemon for rrdtool
+Documentation=man:rrdcached(1)
+
+[Service]
+# If you enable socket-activable rrdcached.socket,
+# command line socket declarations will be ignored
+ExecStart=@prefix@/bin/rrdcached -g
+#WorkingDirectory=
+#User=
+#Group=
+
+[Install]
+WantedBy=multi-user.target
diff --git a/etc/rrdcached.socket.in b/etc/rrdcached.socket.in
new file mode 100644 (file)
index 0000000..7a2d63e
--- /dev/null
@@ -0,0 +1,18 @@
+#
+# To customize, copy this file to /etc/systemd/system/
+# and edit there
+#
+
+[Unit]
+Description=sockets activating rrdcached
+Documentation=man:rrdcached(1)
+
+[Socket]
+ListenStream=/tmp/rrdcached.sock
+#ListenStream=[::1]:42217
+#DirectoryMode=0755
+#SocketMode=0666
+#BindToDevice=
+
+[Install]
+WantedBy=sockets.target