Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-03-2008, 04:55 PM   #1
LQ Newbie
Registered: Sep 2006
Distribution: Debian 4.1
Posts: 16

Rep: Reputation: 0
autostarting nagios deamon

What file do I edit to make sure the following command is executed upon bootup:

sudo /etc/init.d/nagios start

All I want is to be able to power up my PC and the above line item be ran without having to login and manually run it.

Thanks in advance,
Old 04-03-2008, 06:59 PM   #2
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 572

Rep: Reputation: 56
Try this:-
chkconfig nagios on
Then, to see that it has worked, do this:-
chkconfig nagios --list
It should show that it is turned on for the appropriate run levels. If these commands don't work, then it is likely that the /etc/init.d/nagios script doesn't support chkconfig. You can fix this by adding this code somewhere near the top of your scripts (perhaps line 2 or 3):-
# chkconfig: 2345 99 00
Run "man chkconfig" for more details on using chkconfig.

PS: You need to be root to run chkconfig.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 07:26 AM
Nagios Daemon, PID not found but rc.nagios runs agentc0re Slackware 1 07-03-2007 02:47 PM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM
autostarting but from where? evil_empire Fedora 5 03-31-2005 12:51 PM
Autostarting an app MikeMcCarty Linux - Newbie 4 06-30-2003 04:20 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration