daemon startup help!
Hi I need help starting a daemon (which is not one of those pre-installed with mandriva which you can graphically add).
It is the noip daemon which you can download from http://www.no-ip.com/downloads.php?page=linux The daemon works properly but must be started manually with root issuing /usr/local/bin/noip2 How to start it automatically on boot? thanks |
by the way here is the documentation fot the startup script:
The noip2 executable can be run by typing /usr/local/bin/noip2 If you want it to run automatically when the machine is booted, then place the following script in your startup directory. (/etc/init.d/rcX.d or /sbin/init.d/rcX.d or ???) ####################################################### #! /bin/sh # . /etc/rc.d/init.d/functions # uncomment/modify for your killproc case "$1" in start) echo "Starting noip2." /usr/local/bin/noip2 ;; stop) echo -n "Shutting down noip2." killproc -TERM /usr/local/bin/noip2 ;; *) echo "Usage: $0 {start|stop}" exit 1 esac exit 0 ####################################################### Where the 'X' in rcX.d is the value obtained by running the following command grep initdefault /etc/inittab | awk -F: '{print $2}' Killproc can be downloaded from ftp://ftp.suse.com/pub/projects/init Alternatively, you can uncomment the line after #! /bin/sh |
There is a Mandrake package for this. Goto http://easyurpmi.zarb.org and setup your sources (its in contrib in 2006) and then install it through menu->System->Configuration->Packaging->Install Software. You'll find that the Mandrake package will install an entry in /etc/init.d/ so that you can start and stop it as a service like the other daemons (using either the 'service' and 'chkconfig' commands or the Services control panel in Mandrake Control Centre->System).
|
Quote:
could you please tell me more... thanks |
I meant install it using urpmi instead of from the source code (the .tar.gz). Its in the contrib repo so if urpmi can't find it make sure you've got that setup.
|
All times are GMT -5. The time now is 02:18 PM. |