Re: Documentation Error

Horms <[email protected]>
Newsgroups gmane.linux.highavailability.ultramonkey
Message-ID <[email protected]>
On Fri, Oct 21, 2005 at 02:54:02PM -0200, Diego Morales wrote:
> The "High Capacity High Availability and Load Balancing" example in the
> ultramonkey 3 and 2.0.1 docs says:
> 
> (I saw this error in other examples as well)
> 
> "
> ...
> 
> On Debian the update-rc.d command is used:
> 
> /usr/sbin/update-rc.d heartbeat start 2 3 4 5 .
> 
> ...
> "
> 
> This update-rc.d command has correct syntax, but there is a big problem:
> the first number after the "start" (2) is the sequence code for the script
> being added. So it adds the heartbeat in all runlevels but the debian's
> default one, which is 2 (e.g. heartbeat won't start on boot!):
> 
> "# /usr/sbin/update-rc.d heartbeat start 2 3 4 5 .
> 
> Adding system startup for /etc/init.d/heartbeat ...
> 
> /etc/rc3.d/S02heartbeat -> ../init.d/heartbeat
> /etc/rc4.d/S02heartbeat -> ../init.d/heartbeat
> /etc/rc5.d/S02heartbeat -> ../init.d/heartbeat
> "
> 
> I changed it to
> 
> /usr/sbin/update-rc.d heartbeat start 75 2 3 4 5 .
> 
> cause 75 is the sequence it comes by default on debian package.
> As the line in the docs does not specifies the stop runlevels,
> I assume killing the involved processes does a good job, right?.

Thanks, I fixed up the documentation with the missing "75".

As for killing heartbeat, well, now I come to think of it,
both starting and killing should be handled by installing 
the package, which should call update-rc.d correctly.
But its probably best to just change the documentation to
the following to be on the safe side.

/usr/sbin/update-rc.d heartbeat start 75 2 3 4 5 . stop 05 0 1 6 .

The above is what the package does, so there shouldn't 
be any weirdness.

-- 
Horms


-- 
Ultra Monkey - http://www.ultramonkey.org/
To UNSUBSCRIBE, email to [email protected], with a body:
unsubscribe ultramonkey-users [email protected]
where "[email protected]" is YOUR email address.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.