Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th October 2009, 01:31
rukus77 rukus77 is offline
Member
 
Join Date: Apr 2009
Posts: 33
Thanks: 7
Thanked 4 Times in 4 Posts
Default unable to start mydns-ng Centos 5.3

Hello everyone,

I was having the axfr issue where everytime I would update ISPConfig, I would have to update database and change a few lines of code from Y,N to 1,etc...

Anyhow, I decided to try out mydns-ng so I removed mydns and installed ng. Install appeared to go fine, but I believe I need to setup my /etc/init.d/mydns file now. Is there a how to for this? Any guidance would be appreciated.

I tried using the original mydns file, but I cannot start the service.

The only way I can get mydns-ng to start is when I run mydns -v

Thanks,
Mike
Reply With Quote
Sponsored Links
  #2  
Old 17th October 2009, 09:50
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,976
Thanks: 825
Thanked 5,369 Times in 4,216 Posts
Default

You need a file in /etc/init.d. The installation is described in the perfect setup guide for ispconfig 3.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 17th October 2009, 16:41
rukus77 rukus77 is offline
Member
 
Join Date: Apr 2009
Posts: 33
Thanks: 7
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by till View Post
You need a file in /etc/init.d. The installation is described in the perfect setup guide for ispconfig 3.
Hi Till, thanks for your reply. I followed Perfect setup, but it calls for mydns and not mydns-ng for Centos. There is no package for mydns-ng on Centos, so I installed;

./configure
make
make install

It is running fine and I tried using the /etc/init.d/mydns for mydns, but nothing happens when I try to start or stop. I do not get any errors or confirmation messages.

Any suggestions? I appreciate it.

Thanks,
Mike
Reply With Quote
  #4  
Old 19th October 2009, 12:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,976
Thanks: 825
Thanked 5,369 Times in 4,216 Posts
Default

You can use the mydns instructions from the debian guide to create the start script.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 19th October 2009, 20:11
rukus77 rukus77 is offline
Member
 
Join Date: Apr 2009
Posts: 33
Thanks: 7
Thanked 4 Times in 4 Posts
Default

Hi Till, I tried that, but since commands are a little different between the two OS's, I get some errors...

This is what my config looks like in /etc/init.d/mydns. Do you see anything wrong with it?

Thanks,
Mike

#!/bin/bash
#
# mydns This starts and stops mydns.
#
# chkconfig: 345 65 50
# description: A database-driven DNS server
#
# processname: /usr/local/sbin/mydns
# config: /etc/mydns.conf
# pidfile: /var/run/mydns.pid

#PATH=/sbin:/bin:/usr/bin:/usr/sbin
PATH=/usr/local/sbin:/sbin:/bin:/usr/bin:/usr/sbin
mypath=/usr/local/sbin
prog=mydns
myprog=$mypath/$prog

# Source function library.
. /etc/init.d/functions

[ -f /usr/sbin/mydns ] || exit 1
[ -f /etc/mydns.conf ] || exit 1

RETVAL=0

start(){
echo -n $"Starting $prog: "

daemon $myprog -b
RETVAL=$?
echo
touch /var/lock/subsys/mydns
return $RETVAL
}

stop(){
echo -n $"Stopping $prog: "
killproc $myprog
RETVAL=$?
echo
rm -f /var/lock/subsys/mydns
return $RETVAL

}

restart(){
stop
start
}

condrestart(){
[ -e /var/lock/subsys/mydns ] && restart
return 0
}


# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status $prog
;;
restart|reload)
restart
;;
condrestart)
condrestart
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
RETVAL=1
esac

exit $RETVAL

Last edited by rukus77; 19th October 2009 at 20:17. Reason: Spelling
Reply With Quote
  #6  
Old 20th October 2009, 05:53
rukus77 rukus77 is offline
Member
 
Join Date: Apr 2009
Posts: 33
Thanks: 7
Thanked 4 Times in 4 Posts
Default

Quote:
[ -f /usr/sbin/mydns ] || exit 1
I just noticed where I went wrong. Looks like I missed updating the path on this line.

Thanks for your assistance,

Mike
Reply With Quote
  #7  
Old 5th May 2010, 23:06
ar3inc ar3inc is offline
Junior Member
 
Join Date: Apr 2010
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
Default

ok... and what should the line be? I can follow that the path is incorrect but I do not know what it should be. Please help.
Reply With Quote
  #8  
Old 6th May 2010, 16:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's the output of
Code:
which mydns
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 7th May 2010, 05:35
rukus77 rukus77 is offline
Member
 
Join Date: Apr 2009
Posts: 33
Thanks: 7
Thanked 4 Times in 4 Posts
 
Default

Quote:
Originally Posted by ar3inc View Post
ok... and what should the line be? I can follow that the path is incorrect but I do not know what it should be. Please help.
In my case, the path should be;

/usr/local/sbin/mydns

Mike
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 5.2 + ISPConfig 3 tutorial - Problem with email tanakskool Server Operation 1 3rd June 2009 16:22
have the problem with mydns on CentOS 5.3 x86_64 thaibinhtt Installation/Configuration 1 26th May 2009 08:59
"Too many open files in system" problems Berry Installation/Configuration 3 10th November 2007 21:58
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29


All times are GMT +2. The time now is 17:52.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.