diff options
author | Jan Macku <jamacku@redhat.com> | 2021-04-07 16:42:24 +0200 |
---|---|---|
committer | Jan Macku <jamacku@redhat.com> | 2021-05-31 16:03:53 +0200 |
commit | ed2056c28bb76d9a0e7c201e210d2767ab7f164a (patch) | |
tree | bd4e36bfe1c9d71e6fbe8c4c9462b333a85a2cbe /usr | |
parent | 162d35c5fd2ab082efb65c5cfc8206b8bab5f52f (diff) | |
download | initscripts-ed2056c28bb76d9a0e7c201e210d2767ab7f164a.tar initscripts-ed2056c28bb76d9a0e7c201e210d2767ab7f164a.tar.gz initscripts-ed2056c28bb76d9a0e7c201e210d2767ab7f164a.tar.bz2 initscripts-ed2056c28bb76d9a0e7c201e210d2767ab7f164a.tar.xz initscripts-ed2056c28bb76d9a0e7c201e210d2767ab7f164a.zip |
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
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/sbin/service | 11 |
1 files changed, 10 insertions, 1 deletions
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 | \ |