
17th October 2009, 01:31
|
|
Member
|
|
Join Date: Apr 2009
Posts: 33
Thanks: 7
Thanked 4 Times in 4 Posts
|
|
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
|

17th October 2009, 09:50
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,194 Times in 3,212 Posts
|
|
You need a file in /etc/init.d. The installation is described in the perfect setup guide for ispconfig 3.
|

17th October 2009, 16:41
|
|
Member
|
|
Join Date: Apr 2009
Posts: 33
Thanks: 7
Thanked 4 Times in 4 Posts
|
|
Quote:
Originally Posted by till
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
|

19th October 2009, 12:26
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,194 Times in 3,212 Posts
|
|
You can use the mydns instructions from the debian guide to create the start script.
|

19th October 2009, 20:11
|
|
Member
|
|
Join Date: Apr 2009
Posts: 33
Thanks: 7
Thanked 4 Times in 4 Posts
|
|
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
|

20th October 2009, 05:53
|
|
Member
|
|
Join Date: Apr 2009
Posts: 33
Thanks: 7
Thanked 4 Times in 4 Posts
|
|
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
|

5th May 2010, 23:06
|
|
Junior Member
|
|
Join Date: Apr 2010
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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.
|

6th May 2010, 16:27
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
|

7th May 2010, 05:35
|
|
Member
|
|
Join Date: Apr 2009
Posts: 33
Thanks: 7
Thanked 4 Times in 4 Posts
|
|
Quote:
Originally Posted by ar3inc
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
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 01:28.
|
|
Recent comments
19 hours 40 min ago
1 day 2 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 16 hours ago
2 days 1 hour ago
2 days 2 hours ago
2 days 6 hours ago
2 days 10 hours ago
2 days 10 hours ago