Chapter 9. The Operating System
69
echo  n "Stopping domain name service: named"
start stop daemon   stop   quiet
\
  pidfile /var/run/named.pid   exec /usr/sbin/named
echo "."
;;
restart)
echo  n "Restarting domain name service: named"
start stop daemon   stop   quiet   oknodo \
  pidfile /var/run/named.pid   exec /usr/sbin/named
start stop daemon   start   verbose   exec /usr/sbin/named \
   $PARAMS
echo "."
;;
force reload|reload)
echo  n "Reloading configuration of domain name service: named"
start stop daemon   stop   signal 1   quiet
\
  pidfile /var/run/named.pid   exec /usr/sbin/named
echo "."
;;
*)
echo "Usage: /etc/init.d/bind " \
" {start|stop|restart|reload|force reload}" >&2
exit 1
;;
esac
exit 0
Complementing the above init script is a configuration file
/etc/default/bind
, which con 
tains configurable parameters used by the script. This would be created by the
postinst
script if it was not already present, and removed on purge by the
postrm
script.
# Specified parameters to pass to named. See named(8).
# You may uncomment the following line, and edit to taste.
#PARAMS=" u nobody"
Another example on which you can base your
/etc/init.d
scripts is found in
/etc/init.d
/skeleton
.
If this package is happy with the default setup from
update rc.d
, namely an ordering num 
ber of 20 and having named running in all runlevels, it can say in its
postinst
:
update rc.d bind defaults >/dev/null
And in its
postrm
, to remove the links when the package is purged:
if [ "$1" = purge ]; then
update rc.d bind remove >/dev/null
fi






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

gay web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved