LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   daemon startup help! (https://www.linuxquestions.org/questions/mandriva-30/daemon-startup-help-392634/)

rino.caldelli 12-14-2005 01:51 AM

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

rino.caldelli 12-14-2005 12:41 PM

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

tkedwards 12-14-2005 03:52 PM

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

rino.caldelli 12-17-2005 03:37 AM

Quote:

Originally Posted by tkedwards
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).

I didn't catch what I should install, my sources are already configured to install from repositories, but my program is installed from a tar.gz package. So I can't install it with urpmi

could you please tell me more... thanks

tkedwards 12-18-2005 01:39 AM

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.