LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-08-2007, 07:11 PM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

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
shorty943
Member
 
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.

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

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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
Code:
#! /bin/sh
#
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany.  All rights reserved.
#
# Author: Werner Fink <werner@suse.de>, 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.
#
 
  


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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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