LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-14-2005, 01:51 AM   #1
rino.caldelli
Member
 
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181

Rep: Reputation: 31
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
 
Old 12-14-2005, 12:41 PM   #2
rino.caldelli
Member
 
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181

Original Poster
Rep: Reputation: 31
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
 
Old 12-14-2005, 03:52 PM   #3
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 49
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).
 
Old 12-17-2005, 03:37 AM   #4
rino.caldelli
Member
 
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181

Original Poster
Rep: Reputation: 31
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
 
Old 12-18-2005, 01:39 AM   #5
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 49
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.
 
  


Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to startup daemon automatically? Niceman2005 Linux - Newbie 2 01-12-2005 09:27 PM
Startup Daemon on Boot EuroJovi Linux - Newbie 4 01-09-2004 10:39 AM
Getting daemon to run at startup HaPPYFaCe Slackware 1 07-10-2003 08:50 PM
syslog startup daemon script jpflager Linux - Software 6 03-05-2003 12:59 PM
Adding a new daemon to startup wayloud Linux - Newbie 2 01-18-2003 04:24 AM


All times are GMT -5. The time now is 02:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration