diff --git a/SubSystems/Online_Cobalt/install/init.d-qpidd.sh b/SubSystems/Online_Cobalt/install/init.d-qpidd.sh index 3ca0a3fee6be3f7692ff218939c1c39e0d71dee2..4ad45373b07fa0a1ccee1ba372cf8726d3c9d271 100755 --- a/SubSystems/Online_Cobalt/install/init.d-qpidd.sh +++ b/SubSystems/Online_Cobalt/install/init.d-qpidd.sh @@ -57,7 +57,7 @@ do_start() # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started - $SUCMD start-qpid + start-stop-daemon --start --quiet --oknodo --exec $DAEMON --chuid qpid:qpid -- -d --pid-dir /localhome/qpid --data-dir /localhome/qpid/.qpidd --config /opt/qpid/etc/qpid/qpidd.conf --auth no --log-to-file /localhome/qpid/qpid.log return "$?" # Add code here, if necessary, that waits for the process to be ready # to handle requests from services started subsequently which depend @@ -74,7 +74,7 @@ do_stop() # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred - $SUCMD stop-qpid + start-stop-daemon --stop --quiet --oknodo --exec $DAEMON --user qpid RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks diff --git a/SubSystems/Online_Cobalt/install/postinstall_root.sh b/SubSystems/Online_Cobalt/install/postinstall_root.sh index c55747d057e8b0b16c11b65900f4c909d17d18f8..66dd60f3b8eaacd9d964b8ced69870f33bff57ad 100755 --- a/SubSystems/Online_Cobalt/install/postinstall_root.sh +++ b/SubSystems/Online_Cobalt/install/postinstall_root.sh @@ -17,8 +17,8 @@ ln -sfT /localhome /data echo "Creating qpid user..." adduser qpid --system --home /localhome/qpid --disabled-password --disabled-login -#mkdir -p /localhome/qpid -#chown qpid.qpid /localhome/qpid +mkdir -p /localhome/qpid +chown qpid.qpid /localhome/qpid echo "Installing /etc/init.d/qpidd..." cp init.d-qpidd.sh /etc/init.d/qpidd