aboutsummaryrefslogtreecommitdiffstats
path: root/user/systemd-analyze-plot.service
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-03-30 21:11:06 +0200
committerDavid Runge <dave@sleepmap.de>2015-03-30 21:11:06 +0200
commit0ab686a15915a9a2a58d1cb414af4d1a9a05561b (patch)
tree8d4d9e50ac5f9fc4a13a9391cf489ee313e25337 /user/systemd-analyze-plot.service
parent56233e5638af8cc9e0ea387851af730a0c9321a5 (diff)
downloaduenv-0ab686a15915a9a2a58d1cb414af4d1a9a05561b.tar.gz
uenv-0ab686a15915a9a2a58d1cb414af4d1a9a05561b.tar.bz2
uenv-0ab686a15915a9a2a58d1cb414af4d1a9a05561b.tar.xz
uenv-0ab686a15915a9a2a58d1cb414af4d1a9a05561b.zip
user/systemd-analyze-plot.service: Adding first version of service.
Diffstat (limited to 'user/systemd-analyze-plot.service')
-rw-r--r--user/systemd-analyze-plot.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/user/systemd-analyze-plot.service b/user/systemd-analyze-plot.service
new file mode 100644
index 0000000..de9a0e3
--- /dev/null
+++ b/user/systemd-analyze-plot.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Saving systemd-analyze plot to pre-defined folder
+After=local-fs.target
+
+[Service]
+Type=oneshot
+Environment="PLOTDIR=/tmp/"
+Environment="PLOTNAME=systemd-analyze.svg"
+EnvironmentFile=-%h/.config/systemd/plot.conf
+ExecStartPre=/usr/bin/rm -f ${PLOTDIR}${PLOTNAME}
+ExecStart=/usr/bin/bash -c '/usr/bin/systemd-analyze plot > ${PLOTDIR}${PLOTNAME}'
+RemainAfterExit=true
+
+[Install]
+WantedBy=default.target