LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-03-2008, 04:55 PM   #1
no.4
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,
Marty
 
Old 04-03-2008, 06:59 PM   #2
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
Try this:-
Code:
chkconfig nagios on
Then, to see that it has worked, do this:-
Code:
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):-
Code:
# chkconfig: 2345 99 00
Run "man chkconfig" for more details on using chkconfig.

PS: You need to be root to run chkconfig.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:15 AM.

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