richardphibel / rpms / rpm

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