[systemd-devel] [PATCH 5/6] pstore: The new pstore archive service file

Eric DeVolder eric.devolder at oracle.com
Thu May 16 14:28:34 UTC 2019


The necessary systemd service file which invokes the pstore
archival tool upon boot as well as shutdown (poweroff, reboot).

Signed-off-by: Eric DeVolder <eric.devolder at oracle.com>
---
 units/systemd-pstore.service.in | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 units/systemd-pstore.service.in

diff --git a/units/systemd-pstore.service.in b/units/systemd-pstore.service.in
new file mode 100644
index 0000000..4672d81
--- /dev/null
+++ b/units/systemd-pstore.service.in
@@ -0,0 +1,32 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Pstore archive service
+#Documentation=man:systemd-pstore(8)
+#DefaultDependencies=no
+#Conflicts=shutdown.target
+#After=systemd-remount-fs.service systemd-journald.socket
+#Requires=systemd-journald.socket
+#Before=shutdown.target
+Wants=network-online.target local-fs.target remote-fs.target
+After=network-online.target local-fs.target
+
+[Service]
+Type=oneshot
+StandardOutput=syslog+console
+#EnvironmentFile=/etc/default/kdump-tools
+ExecStart=/usr/lib/systemd/systemd-pstore start
+ExecStop=/usr/lib/systemd/systemd-pstore stop
+RemainAfterExit=no
+
+[Install]
+#WantedBy=multi-user.target
+WantedBy=local-fs.target
+
-- 
2.7.4



More information about the systemd-devel mailing list