starting nagioo at boot time
jeff vier
jeff.vier at tradingtechnologies.com
Tue Nov 4 16:29:35 CET 2003
why rc4? rc4 isn't used (yet?) in Linux (unless Debian has elected to
use it for something...unlikely.)
rc3 is console-only and rc5 is GUI (*usually*, and unless something has
changed recently, Debian follows this standard). Usually, an admin
links to, at least, 3 and 5 for start and and the others for kill for
such a service/
Also, you can't just link it with it's stock name "(nagios"), you *must*
append either 'Snn' or 'Knn' denoting start or kill, respectively, with
'nn' changed to a two-digit number to delineate the script's order in
relation to the other scripts at that runlevel. Thus, low numbers (00)
start first or get killed first; obviously, then, high numbers (99)
start later (which is when nagios should start) or die later.
So, run something like 'ln -s /etc/init.d/nagios /etc/rc3.d/S98nagios
/etc/rc5.d/S98nagios /etc/rc0.d/K00nagios /etc/rc1.d/K00nagios
/etc/rc2.d/K00nagios /etc/rc6.d/K00nagios'
Notably, as well, there are command line tools that take care of this
for you. In RedHat and derivates (Mandrake, SuSE, etc), it's
'chkconfig'
Good luck. Be careful. Breaking your init scripts would be bad.
On Tue, 2003-11-04 at 04:05, Jesús Oliván wrote:
> Hi,
>
> i'm trying to start nagios when my debian 3.0 boots up. I've tried to create
> a symbolic link at /etc/rc4.d to ../init.d/nagios, but it didnt work. Anyone
> can help me, plz?
>
> Thanks in advance.
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list