From 0ab686a15915a9a2a58d1cb414af4d1a9a05561b Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 30 Mar 2015 21:11:06 +0200 Subject: user/systemd-analyze-plot.service: Adding first version of service. --- user/systemd-analyze-plot.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 user/systemd-analyze-plot.service 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 -- cgit v1.2.3-70-g09d2