aboutsummaryrefslogtreecommitdiffstats
path: root/usr/lib/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'usr/lib/systemd')
-rwxr-xr-xusr/lib/systemd/mandriva-save-dmesg4
-rw-r--r--usr/lib/systemd/system/mandriva-everytime.service16
-rw-r--r--usr/lib/systemd/system/mandriva-save-dmesg.service14
3 files changed, 34 insertions, 0 deletions
diff --git a/usr/lib/systemd/mandriva-save-dmesg b/usr/lib/systemd/mandriva-save-dmesg
new file mode 100755
index 00000000..92562fcc
--- /dev/null
+++ b/usr/lib/systemd/mandriva-save-dmesg
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+[ -f /var/log/dmesg ] && mv -f /var/log/dmesg /var/log/dmesg.old
+dmesg -s 131072 > /var/log/dmesg
diff --git a/usr/lib/systemd/system/mandriva-everytime.service b/usr/lib/systemd/system/mandriva-everytime.service
new file mode 100644
index 00000000..cc247dba
--- /dev/null
+++ b/usr/lib/systemd/system/mandriva-everytime.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Reconfigure the system on administrator request
+DefaultDependencies=no
+Conflicts=shutdown.target
+Before=basic.target shutdown.target
+After=local-fs.target dkms-autorebuild.service
+
+[Service]
+ExecStart=-/etc/init.d/mandrake_everytime
+Type=oneshot
+TimeoutSec=0
+StandardInput=tty
+RemainAfterExit=yes
+
+[Install]
+WantedBy=basic.target
diff --git a/usr/lib/systemd/system/mandriva-save-dmesg.service b/usr/lib/systemd/system/mandriva-save-dmesg.service
new file mode 100644
index 00000000..386e263e
--- /dev/null
+++ b/usr/lib/systemd/system/mandriva-save-dmesg.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Save boot dmesg content
+DefaultDependencies=no
+Conflicts=shutdown.target
+After=systemd-udev-settle.service local-fs.target
+Before=shutdown.target
+
+[Service]
+ExecStart=-/lib/systemd/mandriva-save-dmesg
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=shutdown.target