diff options
author | Olav Vitters <olav@vitters.nl> | 2020-07-30 23:00:57 +0200 |
---|---|---|
committer | Olav Vitters <olav@vitters.nl> | 2020-07-30 23:00:57 +0200 |
commit | 559146d86096ba0f779bfd102639d602b2e81a1a (patch) | |
tree | fa01ecfe464ba1d3922f1fcf07934a6eb2c8e678 /mageia/usr/lib | |
parent | 7ff84293b012b6787888d9551c7a092492568e6f (diff) | |
download | initscripts-559146d86096ba0f779bfd102639d602b2e81a1a.tar initscripts-559146d86096ba0f779bfd102639d602b2e81a1a.tar.gz initscripts-559146d86096ba0f779bfd102639d602b2e81a1a.tar.bz2 initscripts-559146d86096ba0f779bfd102639d602b2e81a1a.tar.xz initscripts-559146d86096ba0f779bfd102639d602b2e81a1a.zip |
Move mageia specific files to the mageia/ subdirectory
Diffstat (limited to 'mageia/usr/lib')
-rwxr-xr-x | mageia/usr/lib/systemd/mandriva-save-dmesg | 4 | ||||
-rw-r--r-- | mageia/usr/lib/systemd/system/mandriva-everytime.service | 16 | ||||
-rw-r--r-- | mageia/usr/lib/systemd/system/mandriva-save-dmesg.service | 14 | ||||
-rw-r--r-- | mageia/usr/lib/tmpfiles.d/mandriva.conf | 33 |
4 files changed, 67 insertions, 0 deletions
diff --git a/mageia/usr/lib/systemd/mandriva-save-dmesg b/mageia/usr/lib/systemd/mandriva-save-dmesg new file mode 100755 index 00000000..92562fcc --- /dev/null +++ b/mageia/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/mageia/usr/lib/systemd/system/mandriva-everytime.service b/mageia/usr/lib/systemd/system/mandriva-everytime.service new file mode 100644 index 00000000..cc247dba --- /dev/null +++ b/mageia/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/mageia/usr/lib/systemd/system/mandriva-save-dmesg.service b/mageia/usr/lib/systemd/system/mandriva-save-dmesg.service new file mode 100644 index 00000000..386e263e --- /dev/null +++ b/mageia/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 diff --git a/mageia/usr/lib/tmpfiles.d/mandriva.conf b/mageia/usr/lib/tmpfiles.d/mandriva.conf new file mode 100644 index 00000000..5f0c697e --- /dev/null +++ b/mageia/usr/lib/tmpfiles.d/mandriva.conf @@ -0,0 +1,33 @@ +# The following was present in rc.sysinit + +r /fsckoptions +r /.autofsck +r /halt +r /poweroff +r /.suspended +r /etc/killpower + +# The following should really go away after /run and /run/lock +# are converted to tmpfs +R /run/lock/cvs/* +R /run/screen/* + +r /tmp/.lock.* +r /tmp/.s.PGSQL.* +R /tmp/hsperfdata_* +R /tmp/kde-* +R /tmp/ksocket-* +R /tmp/mc-* +R /tmp/mcop-* +R /tmp/orbit-* +R /tmp/ssh-* +R /tmp/.fam_socket +R /tmp/.esd +R /tmp/.esd-* +R /tmp/pulse-* +R /tmp/.sawfish-* +R /tmp/esrv* +R /tmp/kio* +R /var/lib/gdm/core.* + +R /tmp/gpg-* |