SVN: rc-scripts/trunk/lib/functions
glen
glen at pld-linux.org
Tue Apr 9 23:48:11 CEST 2013
Author: glen
Date: Tue Apr 9 23:48:11 2013
New Revision: 12649
Modified:
rc-scripts/trunk/lib/functions
Log:
RedHat/Fedora compatibility
turn daemon() and friends into syntax their scripts understand (shell syntax)
if initscript interpreter is set to bash
Modified: rc-scripts/trunk/lib/functions
==============================================================================
--- rc-scripts/trunk/lib/functions (original)
+++ rc-scripts/trunk/lib/functions Tue Apr 9 23:48:11 2013
@@ -62,6 +62,12 @@
[ -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
More information about the pld-cvs-commit
mailing list