Hello community, here is the log from the commit of package dnsmasq checked in at Fri Aug 11 15:47:02 CEST 2006. -------- --- dnsmasq/dnsmasq.changes 2006-08-07 09:12:10.000000000 +0200 +++ dnsmasq/dnsmasq.changes 2006-08-11 10:21:54.000000000 +0200 @@ -1,0 +2,6 @@ +Fri Aug 11 10:17:41 CEST 2006 - ug@suse.de + +- init-script more LSB conform + patch by Matthias Andree + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dnsmasq.spec ++++++ --- /var/tmp/diff_new_pack.cLhK9y/_old 2006-08-11 15:46:19.000000000 +0200 +++ /var/tmp/diff_new_pack.cLhK9y/_new 2006-08-11 15:46:19.000000000 +0200 @@ -13,7 +13,7 @@ Name: dnsmasq Summary: Lightweight, Easy-to-Configure DNS Forwarder and DHCP Server Version: 2.33 -Release: 1 +Release: 2 License: GPL Group: Productivity/Networking/DNS/Servers Provides: dns_daemon @@ -87,6 +87,9 @@ %doc %{_mandir}/es/man8/dnsmasq.8.gz %changelog -n dnsmasq +* Fri Aug 11 2006 - ug@suse.de +- init-script more LSB conform + patch by Matthias Andree * Mon Aug 07 2006 - ug@suse.de - version 2.33 - Provide extra information to lease-change script ++++++ vendor-files.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/rc.dnsmasq-suse new/rc.dnsmasq-suse --- old/rc.dnsmasq-suse 2006-05-08 10:54:46.000000000 +0200 +++ new/rc.dnsmasq-suse 2006-08-11 10:14:48.000000000 +0200 @@ -16,7 +16,7 @@ NAMED_CONF=/etc/dnsmasq.conf if [ ! -x $NAMED_BIN ] ; then - echo -n "dnsmasq not installed ! " + echo -n "dnsmasq not installed! " exit 5 fi @@ -28,9 +28,9 @@ echo -n "Starting name service masq caching server " checkproc -p $NAMED_PID $NAMED_BIN if [ $? -eq 0 ] ; then - echo -n "- Warning: dnsmasq already running ! " + echo -n "- Warning: dnsmasq already running! " else - [ -e $NAMED_PID ] && echo -n "- Warning: $NAMED_PID exists ! " + [ -e $NAMED_PID ] && echo -n "- Warning: $NAMED_PID exists! " fi startproc -p $NAMED_PID $NAMED_BIN -u nobody rc_status -v @@ -38,27 +38,32 @@ stop) echo -n "Shutting name service masq caching server " checkproc -p $NAMED_PID $NAMED_BIN - [ $? -ne 0 ] && echo -n "- Warning: dnsmasq not running ! " + [ $? -ne 0 ] && echo -n "- Warning: dnsmasq not running! " killproc -p $NAMED_PID -TERM $NAMED_BIN rc_status -v ;; - try-restart) - $0 stop && $0 start + try-restart|force-reload) + if $0 status ; then + $0 restart + else + rc_reset + fi rc_status ;; restart) - $0 stop + if checkproc -p $NAMED_PID $NAMED_BIN ; then + $0 stop + fi $0 start rc_status ;; - force-reload) - $0 reload - rc_status - ;; reload) - echo -n "Reloading name service masq caching server " - checkproc -p $NAMED_PID $NAMED_BIN - [ $? -ne 0 ] && echo -n "- Warning: dnsmasq not running ! " + echo -n "Reloading name service masq caching server unsupported " + rc_failed 3 + rc_status -v + ;; + sighup) + echo -n "Sending SIGHUP to name service masq caching server " killproc -p $NAMED_PID -HUP $NAMED_BIN rc_status -v ;; @@ -71,9 +76,8 @@ test $NAMED_CONF -nt $NAMED_PID && echo reload ;; *) - echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}" + echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|sighup|probe}" exit 1 ;; esac rc_exit - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun...