LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices


Reply
  Search this Thread
Old 09-14-2004, 08:39 PM   #1
Nitrof
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
How to start ddclient at boot time?


I installed ddclient 3.6.3-131.i586.rpm on a Suse 9.1 distribution

I'm able to start it manually, no problem. But unable to initiate it at boot time.

manual command :
cd /etc/init.d
ddclient start
It work fine!

The configuration file: /etc/ddclient.conf is correctly configured and my IP is updated at wwwdyndns.org

Now to run ddclient at run level 5

Create a symbolic link in /etc/init.d/rc5.d

to create the link: (assuming the script ddclient is in /etc/init.d )

cd /etc/init.d/rc5.d
ln -s ../ddclient S20ddclient

if we give a try:

cd /etc/init.d/rc5.d
./S20ddclient start (That's what the boot will do. I believe...)

Result:
Starting ddclient: S20ddclient: line daemon: command not found

what is the problem here???

Ok, the script is not so big...
There is a Start, stop, restart and status

Here is how the start case looks like:

start)
# Start daemons.
echo -n "Startin ddclient: "
touch /var/lock/subsys/ddclient
daemon ddclient -daemon 300
echo
;;
stop)... and so on...

Could someone please tell me what to do?

regards,

Nitrof
 
Old 09-15-2004, 05:41 AM   #2
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
Have you tried running insserv ? Provided you've got a script with right stuff in it in /etc/init.d it'll do it for you - if you haven't got a script use the template in that directory.
 
Old 09-27-2004, 08:14 PM   #3
Nitrof
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Answer to my question

daemon doesn't exist on Suse 9.1. so I changed it to start_daemon and now it work!
 
Old 04-04-2005, 02:50 PM   #4
jst1
Member
 
Registered: Jan 2005
Location: chicago
Distribution: Suse 10.0
Posts: 39

Rep: Reputation: 15
I can run ddclient manually by simply entering 'ddclient', but there is a problem when invoking the link. It should be looking for '/etc/ddclient.conf' but instead it tries to use uses the link name for the config file. What is wrong here?

/etc/init.d/rc5.d/S17ddclient
FATAL: file /etc/S17ddclient.conf: Cannot open file '/etc/S17ddclient.conf'. (No such file or directory)

/etc/init.d/rc5.d/
lrwxrwxrwx 1 root root 11 2005-04-04 14:36 S17ddclient -> ../ddclient

/etc/init.d
-rwxr-xr-x 1 root root 91367 2005-04-04 13:36 ddclient

/etc
-rw------- 1 root root 4827 2005-04-04 13:32 ddclient.conf
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Start WebSphere at Boot Up Time bpellet314 Linux - Newbie 3 08-30-2005 10:09 AM
Start Apache at boot-time alexthedon Linux - Networking 1 06-26-2005 03:59 PM
Start VNC at boot time hlpboplz Linux - Newbie 13 05-25-2005 03:55 PM
Start a program at boot time cppkid Programming 3 08-31-2004 09:33 AM
start the service for every boot time yuva_mca Linux - General 3 03-09-2004 01:18 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

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