Dell 9G + Debian page on linux.dell.com
Bas van der Vlies
basv at sara.nl
Mon Nov 27 11:36:46 CST 2006
John Parnefjord wrote:
> Great work with OMSA 5.1 for Debian!
>
> I discovered some minor issues. When trying to start the web interface a
> file to be sourced could not be found and the stop function didn't work
> properly. Here's a patch. Save to file patchfile and then apply with
>
> patch -p0 < patchfile
>
John,
Thanks i shall apply the patch and release a new version.
Regards
> // John
>
>
>
>
> --- /opt/dell/srvadmin/iws/bin/linux/dsm_om_connsvc 2006-11-27
> 17:59:08.000000000 +0100
> +++ /opt/dell/srvadmin/iws/bin/linux/dsm_om_connsvc_patched
> 2006-11-27 18:04:36.000000000 +0100
> @@ -111,7 +111,7 @@
>
> ## Source any dependent configuration here
> ##
> -. /etc/sysconfig/omawsd.src
> +. /opt/dell/srvadmin/iws/bin/linux/omawsd.src
>
>
> ## Sanity check
> @@ -212,6 +212,7 @@
> ##
>
> ########################################################################
> #######
> stop() {
> +
> # Check if the daemon is running
> STATUS ${PROGRAM_DAEMON} >/dev/null
> if [ $? == 3 ];
> @@ -221,8 +222,17 @@
> return 2
> fi
> echo -n $"Shutting down ${PROGRAM_NAME}: "
> - killproc ${PROGRAM_DAEMON}
> +
> + # Get list of pids using pidof
> + PIDLIST=`pidof -o $$ -o ${PPID} -o %PPID -x ${PROGRAM_DAEMON}`
> + if [ -n "${PIDLIST}" ];
> + then
> + kill ${PIDLIST}
> + echo "stopped"
> + return 0
> + fi
>
> +
> COUNTER=0
> STATUS ${PROGRAM_DAEMON} >/dev/null
> STATUSVAL=$?
> @@ -239,7 +249,7 @@
> #kill the process again
> if [ ${STATUSVAL} != 3 ]
> then
> - killproc ${PROGRAM_DAEMON} >/dev/null
> + kill ${PROGRAM_DAEMON} >/dev/null
> fi
>
> STATUS ${PROGRAM_DAEMON} >/dev/null
>
>
>
>
>
> _______________________________________________
> Linux-PowerEdge mailing list
> Linux-PowerEdge at dell.com
> http://lists.us.dell.com/mailman/listinfo/linux-poweredge
> Please read the FAQ at http://lists.us.dell.com/faq
--
********************************************************************
* *
* Bas van der Vlies e-mail: basv at sara.nl *
* SARA - Academic Computing Services phone: +31 20 592 8012 *
* Kruislaan 415 fax: +31 20 6683167 *
* 1098 SJ Amsterdam *
* *
********************************************************************
More information about the Linux-PowerEdge
mailing list