]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
RedHat/Fedora compatibility
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 9 Apr 2013 21:48:11 +0000 (21:48 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 9 Apr 2013 21:48:11 +0000 (21:48 +0000)
turn daemon() and friends into syntax their scripts understand (shell syntax)
if initscript interpreter is set to bash

svn-id: @12649

lib/functions

index 7b03a81cc8758f7d27e46142bd1534eded4e688a..6359e6a17bcb8738e08cc316f2677b60ed790551 100644 (file)
@@ -62,6 +62,12 @@ env_upstart=$USE_UPSTART
 [ -r /etc/sysconfig/system ] && . /etc/sysconfig/system
 [ -r /etc/sysconfig/bootsplash ] && . /etc/sysconfig/bootsplash
 
+# if initscript is invoked via bash, enable RedHat/Fedora compatibility
+if [ "${BASH_VERSION+set}" = "set" ]; then
+       RC_LOGGING=yes
+       FASTRC=no
+fi
+
 [ "$env_upstart" ] && USE_UPSTART=$env_upstart
 
 if [ -z "$VSERVER" -o "$VSERVER" = "detect" ]; then
This page took 0.545659 seconds and 4 git commands to generate.