aboutsummaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2021-04-07 16:42:24 +0200
committerJan Macku <jamacku@redhat.com>2021-05-31 16:03:53 +0200
commited2056c28bb76d9a0e7c201e210d2767ab7f164a (patch)
treebd4e36bfe1c9d71e6fbe8c4c9462b333a85a2cbe /usr
parent162d35c5fd2ab082efb65c5cfc8206b8bab5f52f (diff)
downloadinitscripts-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-xusr/sbin/service11
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 | \