From ed2056c28bb76d9a0e7c201e210d2767ab7f164a Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Wed, 7 Apr 2021 16:42:24 +0200 Subject: spec: Move service script into subpackage This changes moves service script into initscripts-service subpackage. The subpackage could be install without main package. This change allows audit not to require initscripts and require only initscripts-service instead. Requested by: msekleta@redhat.com --- usr/sbin/service | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/sbin/service b/usr/sbin/service index 4e82bad1..4f0acc07 100755 --- a/usr/sbin/service +++ b/usr/sbin/service @@ -1,6 +1,15 @@ #!/bin/bash -. /etc/init.d/functions +# Check whether file $1 is a backup or rpm-generated file and should be ignored +# Copy of the function from etc/rc.d/init.d/functions +is_ignored_file() { + case "$1" in + *~ | *.bak | *.old | *.orig | *.rpmnew | *.rpmorig | *.rpmsave) + return 0 + ;; + esac + return 1 +} VERSION="$(basename $0) ver. 1.1" USAGE="Usage: $(basename $0) < option > | --status-all | \ -- cgit v1.2.1