You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.4 KiB
69 lines
2.4 KiB
7 years ago
|
From 4a2c311bfe21eda9472f52795db1c9f883e6c194 Mon Sep 17 00:00:00 2001
|
||
|
From: Florian Festi <ffesti@redhat.com>
|
||
|
Date: Mon, 4 Jul 2016 17:45:33 +0200
|
||
|
Subject: [PATCH] Add man page for systemd-inhibit plugin
|
||
|
|
||
|
---
|
||
|
doc/Makefile.am | 1 +
|
||
|
doc/rpm-plugin-systemd-inhibit.8 | 36 ++++++++++++++++++++++++++++++++++++
|
||
|
2 files changed, 37 insertions(+)
|
||
|
create mode 100644 doc/rpm-plugin-systemd-inhibit.8
|
||
|
|
||
|
diff --git a/doc/Makefile.am b/doc/Makefile.am
|
||
|
index f7940b9..d2f520d 100644
|
||
|
--- a/doc/Makefile.am
|
||
|
+++ b/doc/Makefile.am
|
||
|
@@ -9,6 +9,7 @@ EXTRA_DIST += $(man_man1_DATA)
|
||
|
man_man8dir = $(mandir)/man8
|
||
|
man_man8_DATA = rpm.8 rpmbuild.8 rpmdeps.8 rpmgraph.8 rpm2cpio.8
|
||
|
man_man8_DATA += rpmdb.8 rpmkeys.8 rpmsign.8 rpmspec.8
|
||
|
+man_man8_DATA += rpm-plugin-systemd-inhibit.8
|
||
|
EXTRA_DIST += $(man_man8_DATA)
|
||
|
|
||
|
man_fr_man8dir = $(mandir)/fr/man8
|
||
|
diff --git a/doc/rpm-plugin-systemd-inhibit.8 b/doc/rpm-plugin-systemd-inhibit.8
|
||
|
new file mode 100644
|
||
|
index 0000000..b49e8ef
|
||
|
--- /dev/null
|
||
|
+++ b/doc/rpm-plugin-systemd-inhibit.8
|
||
|
@@ -0,0 +1,36 @@
|
||
|
+.TH "RPM-SYSTEMD-INHIBIT" "8" "14 Apr 2016" "Red Hat, Inc."
|
||
|
+.SH NAME
|
||
|
+rpm-plugin-systemd-inhibit \- Plugin for the RPM Package Manager
|
||
|
+
|
||
|
+.SH Description
|
||
|
+
|
||
|
+This plugin for RPM prevents the system to enter shutdown, sleep or idle
|
||
|
+mode while there is a rpm transaction running to prevent system corruption
|
||
|
+that can occur if the transaction is interrupted by a reboot.
|
||
|
+
|
||
|
+This is achieved by using the inhibit DBUS interface of systemd. The call is
|
||
|
+roughly equivalent to executing
|
||
|
+
|
||
|
+\fBsystemd-inhibit --mode=block --what=idle:sleep:shutdown --who=RPM --why="Transaction running"\fR
|
||
|
+
|
||
|
+See \fBsystemd-inhibit(1)\fR for the details of this mechanism.
|
||
|
+
|
||
|
+It is strongly advised to have the plugin installed on all systemd
|
||
|
+based systems.
|
||
|
+
|
||
|
+.SH Prerequisites
|
||
|
+
|
||
|
+For the plugin to work systemd has to be used as init system and
|
||
|
+though the DBUS system bus must be available. If the plugin cannot access the
|
||
|
+interface it gives a warning but does not stop the transaction.
|
||
|
+
|
||
|
+.SH Configuration
|
||
|
+
|
||
|
+The plugin currently does not have any configuration option other than
|
||
|
+turning it on and off. It can be disabled by commenting out the
|
||
|
+\fI%__transaction_systemd_inhibit\fR macro in main macros file
|
||
|
+(typically located at \fI/usr/lib/rpm/macros\fR) or otherwise change
|
||
|
+the value of the macro.
|
||
|
+
|
||
|
+Another option is to remove the plugin from the system if it is
|
||
|
+packaged in its own sub package.
|
||
|
--
|
||
|
2.5.5
|
||
|
|