From b147129f0ba40e800e97a51f841e7fa3eb294090 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 27 Jul 2014 19:42:37 +0100 Subject: Drop systemd migration scripts we never used. --- postun-unit | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100755 postun-unit (limited to 'postun-unit') diff --git a/postun-unit b/postun-unit deleted file mode 100755 index dfc4b82..0000000 --- a/postun-unit +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh -#--------------------------------------------------------------- -# Project : Mandriva Linux -# Module : rpm-helper -# File : postun-unit -# Version : $Id$ -# Authors : Andrey Borzenkov -# Created On : Sat Mar 12 18:05:00 2011 -# Purpose : helper script for rpm scriptlets to remove a -# systemd unit. -#--------------------------------------------------------------- - -# Reload systemd configuration and try to restart units -# It has to be done in postun because package removal may delete -# some links and we need to inform systemd about it - -/bin/mountpoint -q /sys/fs/cgroup/systemd || exit 0 - -if [ $# -lt 3 ]; then - echo "usage: $0 ..." 1>&2 - exit 1 -fi - -pkg=$1 # name of the package -num=$2 # number of packages installed -shift 2 # systemd units - -/bin/systemctl daemon-reload - -if [ $num -ge 1 ]; then - if [ -z "$DURING_INSTALL" ]; then - # New package may have removed some units so restart will - # fail for them; catch it. - # TODO find a way to pass parameters from current packages - # into script installed by previous version - /bin/systemctl try-restart "$@" || : - fi -fi - -# postun-unit ends here -- cgit v1.2.1