-   Linux - General (
-   -   running program at startup (

noir911 01-08-2007 07:11 PM

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

shorty943 01-08-2007 08:08 PM

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.


jschiwal 01-08-2007 08:46 PM

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.

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