[lvs-users] Ldirectord debian init script

Jason Ledford jledford at biltmore.com
Fri Oct 10 02:18:00 BST 2008

Well you did get it fixed :) it just didn't make it to debian etch.  Either fix is very acceptable.


-----Original Message-----
From: lvs-users-bounces at linuxvirtualserver.org [mailto:lvs-users-bounces at linuxvirtualserver.org] On Behalf Of Simon Horman
Sent: Thursday, October 09, 2008 7:38 PM
To: LinuxVirtualServer.org users mailing list.
Subject: Re: [lvs-users] Ldirectord debian init script

On Fri, Oct 10, 2008 at 09:11:55AM +1100, Simon Horman wrote:
> On Thu, Oct 09, 2008 at 01:36:09PM -0400, Jason Ledford wrote:
> > Apt-get install ldirectord-2
> >
> > I can make my own init script but it seems like it should work out of the box.
> Indeed it should, I will look into it.
> Thanks for pointing this out.

Hi Jason,

I've looked into this, and the problem is that the init script
included in ldirectord-2 2.0.7-2, which is in turn included
in Debian Etch, is a Red Hat style init script, not a Debian style
init script.

This problem was fixed in the 2.0.8-4 release, but unfortunately
that didn't make it into Etch, and I'm not sure that this kind
of bug-fix is eligible for inclusion in an update to Etch.

I have opened and closed a bug-report ont he Debian bug tracker
to log this problem as known and fixed in releases subsequent to Etch.


In the bug report I ofter two work-arounds, which I will reiterate here
for the record, althogh I gather that the reason you reported this
problem was to get it fixed properly, not to get a work-around. Sorry
that I can't help there.

1. Use the ldirectord-2 2.1.3-6~bpo40+2 package available from backports.org.

2. Use the following script as /etc/init.d/ldirectord

# Provides:          ldirectord
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Author: Horms <horms at verge.net.au>
# Debian init script for ldirectord


test -x $DAEMON || exit 0

[ -f "$CONFIG" ] && . "$CONFIG"

case "$1" in
                exec "$DAEMON" $1
                echo "Usage: /etc/init.d/$NAME" \
        exit 1

Simon Horman
  VA Linux Systems Japan K.K., Sydney, Australia Satellite Office
  H: www.vergenet.net/~horms/             W: www.valinux.co.jp/en

LinuxVirtualServer.org mailing list - lvs-users at LinuxVirtualServer.org
Send requests to lvs-users-request at LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

More information about the lvs-users mailing list