Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 201982 Details for
Bug 282396
net-dns/mydns-1.1.0-r1 multiple-instance init script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
mydns init script patch
mydns-initscript.diff (text/plain), 1.24 KB, created by
Aaron Ten Clay
on 2009-08-23 04:44:38 UTC
(
hide
)
Description:
mydns init script patch
Filename:
MIME Type:
Creator:
Aaron Ten Clay
Created:
2009-08-23 04:44:38 UTC
Size:
1.24 KB
patch
obsolete
>5a6,14 >> INSTANCE=${SVCNAME#*.} >> if [[ -n "${INSTANCE}" ]] && [[ "${INSTANCE}" != "mydns" ]]; then >> PIDFILE="/var/run/mydns.${INSTANCE}.pid" >> CONF="/etc/mydns.${INSTANCE}.conf" >> else >> PIDFILE="/var/run/mydns.pid" >> CONF="/etc/mydns.conf" >> fi >> >12,13c21,22 >< if [ ! -f /etc/mydns.conf ] ; then >< eerror "No /etc/mydns.conf file exists!" >--- >> if [[ ! -f ${CONF} ]]; then >> eerror "No ${CONF} file exists!" >15,16c24,25 >< eerror "# /usr/sbin/mydns --dump-config > /etc/mydns.conf" >< eerror "# chmod 0600 /etc/mydns.conf" >--- >> eerror "# /usr/sbin/mydns --dump-config > ${CONF}" >> eerror "# chmod 0600 ${CONF}" >21a31,32 >> ebegin "Starting ${SVCNAME}" >> >23,24c34,36 >< ebegin "Starting mydns" >< start-stop-daemon --start --quiet --exec /usr/sbin/mydns -- -b >--- >> >> start-stop-daemon --start --quiet --exec /usr/sbin/mydns \ >> --pidfile=${PIDFILE} -- --conf=${CONF} -b >29,33c41 >< ebegin "Stopping mydns" >< PIDFILE=`cat /etc/mydns.conf | grep pidfile | awk '{ print $3 }'` >< if [ $PIDFILE == "" ]; then >< PIDFILE=/var/run/mydns.pid >< fi >--- >> ebegin "Stopping ${SVCNAME}"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 282396
: 201982