Blame SOURCES/hsqldb-1.8.0-specify-su-shell.patch

100e1c
--- bin/hsqldb.orig	2011-01-24 11:59:14.356301132 +0200
100e1c
+++ bin/hsqldb	2011-01-24 12:00:06.278430417 +0200
100e1c
@@ -41,7 +41,7 @@
100e1c
 # use this file.
100e1c
 
100e1c
 # This stuff will be ignored by systems that don't use chkconfig.
100e1c
-# chkconfig: 345 87 13
100e1c
+# chkconfig: - 87 13
100e1c
 # description: Hsqldb, A High Performance Java Database
100e1c
 # pidfile: /var/run/hsqldb.pid
100e1c
 # config: /etc/sysconfig/hsqldb
100e1c
@@ -51,7 +51,6 @@
100e1c
 # Provides:          HSQLDB-Server
100e1c
 # Required-Start:    $syslog $remote_fs $network $named
100e1c
 # Required-Stop:
100e1c
-# Default-Start:     3 5
100e1c
 # Default-Stop:      0 1 2 6
100e1c
 # Short-Description: HSQLDB-Server
100e1c
 # Description:       Hsqldb, A High Performance Java Database Server
100e1c
@@ -369,7 +368,7 @@ running with pid $HSQLDB_PID."
100e1c
             # Some OSes choke if there are newlines in this string.
100e1c
             # N.b.!!!  The shell of the -c command is the target user's default
100e1c
             # login shell, so keep this command shell-independent!
100e1c
-            nohup su "$HSQLDB_OWNER" -c "cd '$SERVER_HOME' && echo "'$$'" > '$PIDFILE' && exec '$JAVA_EXECUTABLE' $SERVER_JVMARGS $TLS_SWITCHES -classpath '${SERVER_ADDL_CLASSPATH}${HSQLDB_JAR_PATH}' org.hsqldb.util.MainInvoker org.hsqldb.$TARGET_CLASS $INVOC_ADDL_ARGS" >> "$LOGFILE" 2>&1 &
100e1c
+            nohup su "$HSQLDB_OWNER" -s /bin/sh -c "cd '$SERVER_HOME' && echo "'$$'" > '$PIDFILE' && exec '$JAVA_EXECUTABLE' $SERVER_JVMARGS $TLS_SWITCHES -classpath '${SERVER_ADDL_CLASSPATH}${HSQLDB_JAR_PATH}' org.hsqldb.util.MainInvoker org.hsqldb.$TARGET_CLASS $INVOC_ADDL_ARGS" >> "$LOGFILE" 2>&1 &
100e1c
         else
100e1c
             cd "$SERVER_HOME" || {
100e1c
                 echo "Failed to cd to '$SERVER_HOME'" 1>&2
100e1c
@@ -464,7 +463,7 @@ See log file '$LOGFILE'." 1>&2
100e1c
         echo "Successful shutdown ${SHUTDOWN_OPTION} (for the $TARGET_CLASS process)!"
100e1c
         exit 0
100e1c
     ;;
100e1c
-    restart|restartcompacted)
100e1c
+    restart|restartcompacted|reload)
100e1c
         STOP_COMMAND=stop
100e1c
         [ "$COMMAND" = restartcompacted ] && STOP_COMMAND=stopcompact
100e1c
         "${INVOC_PATH}"hsqldb $STOP_COMMAND || exit $?