Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-08-2007, 07:11 PM   #1
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681

Rep: Reputation: Disabled
running program at startup

I got nrpe running as daemon & this is the comand to run it

/home/me/nrpe-2.5.2/src/nrpe -d -n -c /etc/nrpe.cfg

I want this command to be started when I reboot the box. I was wondering
if I could add it somewhere so it starts every time the box starts.

I tried

/sbin/chkconfig --add nrpe
/sbin/chkconfig --add /home/easysadmin/nrpe-2.5.2/src/nrpe
/sbin/chkconfig --add /home/easysadmin/nrpe-2.5.2/src/nrpe -d -n -c /etc/nrpe.cfg

without any success on a SUSE Linux Enterprise Server 10
Old 01-08-2007, 08:08 PM   #2
Registered: Dec 2006
Location: Tailem Bend. South Australia
Distribution: Mandriva 2006
Posts: 124

Rep: Reputation: 15
I don't know either. How ever this is not really a general question. Maybe you could repost in the server forum, and also in the Suse forum. you may find more help there.

Best wishes.

Old 01-08-2007, 08:46 PM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657
Did you create a startup script in /etc/init.d/ based on a skeleton script? If not then chkconfig won't create a link to the script.

An easier way would be to add that line to /etc/init.d/boot.local
#! /bin/sh
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany.  All rights reserved.
# Author: Werner Fink <>, 1996
#         Burchard Steinbild, 1996
# /etc/init.d/boot.local
# script with local commands to be executed from init on system startup
# Here you should add things, that should happen directly after booting
# before we're going to the first run level.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
running java program at startup in background Maverick1182 Linux - Newbie 4 09-19-2006 06:09 PM
Running a program at startup allomeen Linux - General 5 02-15-2006 06:36 PM
running a program at startup beccala33 Linux - Newbie 3 04-25-2002 05:00 PM
running a program at startup beccala33 Programming 1 04-23-2002 04:10 PM
X Startup Program ryanstrayer Linux - General 1 01-29-2002 03:21 PM

All times are GMT -5. The time now is 04:21 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