Skip to content

Commit

Permalink
Merge pull request #36 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 2.15.4
  • Loading branch information
andyone committed Nov 30, 2019
2 parents 176e5be + 9ba3c91 commit 92047a5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
26 changes: 24 additions & 2 deletions SOURCES/kaosv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# shellcheck disable=SC1117,SC2015,SC2028,SC2034,SC2119,SC2120,SC2154,SC2181
# shellcheck disable=SC1117,SC2015,SC2028,SC2034,SC2119,SC2120,SC2154,SC2181,SC2254

# KAOSv is bash lib for SysV init scripts.
#
Expand All @@ -10,10 +10,16 @@ if [[ "$BASH" == "/bin/sh" ]] ; then
exit $?
fi

########################################################################################

if [[ -n "${SCRIPT_DEBUG}" ]] ; then
set -x
fi

###############################################################################

# Current version of KAOSv
KV_VERSION="2.15.3"
KV_VERSION="2.15.4"

###############################################################################

Expand Down Expand Up @@ -312,6 +318,8 @@ kv_pid="" # PID cache
# Example:
# kv.go $@
kv.go() {
trap kvErrHandler ERR

kvFindExecInfo
kvCheckExec

Expand Down Expand Up @@ -2313,4 +2321,18 @@ kvGetFileModDate() {
stat -c '%Y' "$1" 2> /dev/null
}

# -
#
# Handler for errors
#
# Code: No
# Echo: No
kvErrHandler() {
while caller $((n++)) ; do
true
done

exit 1
}

###############################################################################
6 changes: 5 additions & 1 deletion kaosv.spec
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

Summary: Bash lib for SysV init scripts
Name: kaosv
Version: 2.15.3
Version: 2.15.4
Release: 0%{?dist}
Group: Applications/System
License: EKOL
Expand Down Expand Up @@ -83,6 +83,10 @@ rm -rf %{buildroot}
################################################################################

%changelog
* Sat Nov 30 2019 Anton Novojilov <andy@essentialkaos.com> - 2.15.4-0
- Added handling of SCRIPT_DEBUG environment variable for enabling debug mode
- Added handler for script errors

* Sat May 25 2019 Anton Novojilov <andy@essentialkaos.com> - 2.15.3-0
- Improved forced stop handling
- Improved PID search mechanic
Expand Down

0 comments on commit 92047a5

Please sign in to comment.