Apache Directory Project - [RPM Installer Start/Stop Script] Do we need these?

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > March 2007 > [RPM Installer Start/Stop Script] Do we need these?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [RPM Installer Start/Stop Script] Do we need these?
Ole Ersoy

2007-03-22, 1:11 am

I looked at Tomcat's start/stop script (catalina.sh)
and it does not have this in it:

# Source function library.
if [ -f /etc/init.d/functions ] ; then
. /etc/init.d/functions
fi

# Source networking configuration.
if [ -f /etc/sysconfig/network ] ; then
. /etc/sysconfig/network
fi

# Check that networking is up.
if [ ! -z "$NETWORKING" ] ; then
if [ "$NETWORKING" = "no" ] ; then
exit 0
fi
fi


It made me think that maybe we don't need it either...
Not that these are harmful in anyway, but personally I prefer things
to be as lightweight as possible for ease of maintenance and simplicity.

Thoughts?

Thanks,
- Ole

Alex Karasulu

2007-03-27, 1:11 pm

Yeah kill it if it looks superfoulous.

Thanks Ole,
ALex


On 3/21/07, Ole Ersoy <ole.ersoy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> I looked at Tomcat's start/stop script (catalina.sh)
> and it does not have this in it:
>
> # Source function library.
> if [ -f /etc/init.d/functions ] ; then
> . /etc/init.d/functions
> fi
>
> # Source networking configuration.
> if [ -f /etc/sysconfig/network ] ; then
> . /etc/sysconfig/network
> fi
>
> # Check that networking is up.
> if [ ! -z "$NETWORKING" ] ; then
> if [ "$NETWORKING" = "no" ] ; then
> exit 0
> fi
> fi
>
>
> It made me think that maybe we don't need it either...
> Not that these are harmful in anyway, but personally I prefer things
> to be as lightweight as possible for ease of maintenance and simplicity.
>
> Thoughts?
>
> Thanks,
> - Ole
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com