Bug#742379: apt-cacher: Rewrite init script proposal
Package: apt-cacher Version: 1.7.6 Severity: minor Tags: patch Dear Maintainer, I'm preparing a server project which uses apt-cacher package. But init script is not as nice as the others and seems uses old-style event display. I've joined an init script which complies with Wheezy start-stop-daemon usage. I'll use it in my own project but you could be interested ! Regards F!nTcH PS: Init script doesn't seems to be updated, even on 1.7.8 (unstable) X-Mailer: reportbug 6.4.4 -- System Information: Debian Release: 7.4 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages apt-cacher depends on: ii debconf [debconf-2.0] 1.5.49 ii dpkg 1.16.12 ii ed 1.6-2 ii libfilesys-df-perl 0.92-4+b1 ii libfreezethaw-perl 0.5001-1 ii libio-interface-perl 1.06-1+b1 ii libnetaddr-ip-perl 4.062+dfsg-1 ii libsys-syscall-perl0.23-1 ii libwww-curl-perl 4.15-1+b2 ii libwww-perl6.04-1 ii lsb-base 4.1+Debian8+deb7u1 ii perl 5.14.2-21+deb7u1 ii ucf3.0025+nmu3 ii update-inetd 4.43 Versions of packages apt-cacher recommends: ii libberkeleydb-perl 0.51-1 Versions of packages apt-cacher suggests: pn libio-socket-inet6-perl none -- Configuration Files: /etc/init.d/apt-cacher changed: PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC=Apt-Cacher NAME=apt-cacher DAEMON=/usr/sbin/$NAME PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME test -x $DAEMON || exit 0 if [ -r /etc/default/$NAME ] then . /etc/default/$NAME fi . /lib/lsb/init-functions d_start() { if test $AUTOSTART = 1 ; then start-stop-daemon --start --quiet \ --exec $DAEMON -- -R 3 -d -p $PIDFILE $EXTRAOPT \ return $? else log_warning_msg Not started (AUTOSTART not enabled in /etc/default/$NAME); return 0 fi } d_stop() { start-stop-daemon --stop --quiet --retry=TERM/10/KILL/5 --pidfile $PIDFILE \ --name $NAME # Also stop any running libcurl backend /usr/share/apt-cacher/libcurl.pl EXIT } case $1 in start) log_daemon_msg Starting $DESC $NAME d_start log_end_msg $? ;; stop) log_daemon_msg Stopping $DESC $NAME d_stop log_end_msg $? ;; restart) $0 stop sleep 1 $0 start ;; force-reload|reload) log_daemon_msg Reloading configuration files for $DESC $NAME start-stop-daemon --status --pidfile $PIDFILE if [ $? != 0 ] ; then log_warning_msg Not running! else kill -HUP `cat $PIDFILE` log_end_msg 0 fi ;; status) status_of_proc -p $PIDFILE $DAEMON $NAME exit 0 || exit $? ;; *) log_action_msg Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|status} exit 1 ;; esac exit 0 -- debconf information: * apt-cacher/mode: daemon -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#742334: pdns-server start/stop events doesn't display at startup
Package: pdns-server Version: 3.1-4.1 Severity: minor Tags: d-i patch Dear Maintainer, I'm trying some tests with pdns in way to replace Bind9. I'm currently working with ldap backend and to check dependency based boot sequence I would like to see pdns start/stop events. Please have a look on the patched version of pdns init script below, script I'm using. I've only removed '' [ $VERBOSE != no ] '' since $VERBOSE depends on kernel quiet boot. I think a daemon like pdns does not use this kind of variables and should always display LSB log_msg functs. It's a suggest more than a bug, but on some case (like mine), it could be useful. Regards. F!nTcH PS: Even if this bug report is for Version 3.1-4, it comes also in last unstable version (3.3-2). X-Mailer: reportbug 6.4.4 -- System Information: Debian Release: 7.4 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages pdns-server depends on: ii adduser 3.113+nmu3 ii debconf [debconf-2.0] 1.5.49 ii libboost-program-options1.49.0 1.49.0-3.2 ii libboost-serialization1.49.01.49.0-3.2 ii libc6 2.13-38+deb7u1 ii libcrypto++95.6.1-6 ii libgcc1 1:4.7.2-5 ii liblua5.1-0 5.1.5-4 ii libpolarssl01.2.9-1~deb7u1 ii libsqlite3-03.7.13-1+deb7u1 ii libstdc++6 4.7.2-5 ii ucf 3.0025+nmu3 ii zlib1g 1:1.2.7.dfsg-13 pdns-server recommends no packages. Versions of packages pdns-server suggests: ii pdns-backend-ldap [pdns-backend] 3.1-4.1 pn pdns-recursor none -- Configuration Files: /etc/init.d/pdns changed: PATH=/bin:/sbin:/usr/bin:/usr/sbin BINARYPATH=/usr/bin SBINARYPATH=/usr/sbin SOCKETPATH=/var/run ODESC=PowerDNS Authoritative Name Server DESC=$ODESC NAME=pdns DAEMON=/usr/sbin/pdns_server DAEMON_ARGS= PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME [ -x $DAEMON ] || exit 0 [ -r /etc/default/pdns ] . /etc/default/pdns mkdir -p $SOCKETPATH cd $SOCKETPATH suffix=$(basename $0 | cut -d- -f2- -s) if [ $suffix ]; then SUFFIX=--config-name=$suffix DAEMON_ARGS=$DAEMON_ARGS $SUFFIX NAME=$NAME-$suffix DESC=$DESC (config name $suffix) PIDFILE=/var/run/$NAME-$suffix.pid fi . /lib/init/vars.sh . /lib/lsb/init-functions doPC() { pdns_control $SUFFIX $1 $2 2 /dev/null return $? } isrunning() { doPC ping /dev/null return $? } do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started if isrunning; then return 1 fi start-stop-daemon --start --quiet \ --pidfile $PIDFILE --exec $DAEMON -- \ $DAEMON_ARGS --daemon --guardian=yes \ || return 2 } do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred doPC quit /dev/null RETVAL=2 for sec in $(seq 1 5); do if ! isrunning; then RETVAL=0 break fi sleep 1 done [ $RETVAL = 2 ] return 2 rm -f $PIDFILE } case $1 in start) log_daemon_msg Starting $DESC $NAME do_start case $? in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; stop) log_daemon_msg Stopping $DESC $NAME do_stop case $? in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; status) if isrunning; then log_success_msg $NAME is running: $(doPC status) else log_failure_msg $NAME is not running exit 1 fi ;; force-stop) log_daemon_msg Killing $ODESC (all instances) $NAME kill -9 $(pidof pdns_server) case $? in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; esac ;; restart) log_daemon_msg Restarting $DESC $NAME do_stop case $? in 0|1) do_start case $? in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; reload|force-reload) log_daemon_msg Reloading $DESC $NAME if isrunning; then doPC cycle /dev/null case $? in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; esac else log_end_msg 0 fi ;; monitor) if isrunning; then echo already running
Bug#295144: Bug report
Package: installation-reports Debian-installer-version: 12 Feb 2005 http://debian-amd64.alioth.debian.org/install-images/sarge-amd64-netinst.iso Date: 13 Feb 2005 - 14h00 Method: Boot from the CDROM (with the burned ISO, md5 checksum ok) Machine: AMD64 Chipset nForce3, ATI Radeon 9700 128MB Processor: AMD Athlon XP 64 3000+ Memory: 512MB DDR Root Device: IDE0 120GB hda hda1 WIN2k ~20GB NTFS hda5 / ~8GB ext2 hda6 swap ~500MB swap hda7 /home ~20GB hda8 - ~20GB FAT32 (swap Win/Linux) hda9 - ~30GB NTFS (supply for Win) hda10 - - FAT32 (for ghost images) Base System Installation Checklist: Initial boot worked:[O] Configure network HW: [E] driver for nForce not found Config network: [ ] Detect CD: [O] Load installer modules: [O] Detect hard drives: [O] Partition hard drives: [O] Create file systems:[O] Mount partitions: [O] Install base system:[O] Install boot loader:[E] cannot install grub on floppy disk or on the MBR or on hda5, cannot install LILO on MBR or on hda5 Reboot: [E] if GRUB install succed, cannot boot system Comments/Problems: Some problems may happend during partitionning process, for example mounted partition cannot unmouted before deleting ... those problems don't appears each time I've tried to delete a partition (perhaps I've come to a previous process then I've tried to configure my partitions) But I haven't succeed in starting system, I have always problems with boot loaders... When I can install them, they don't want boot the kernel, LILO don't print the menu, and GRUB says me he's booting the kernel but that's all ... Could you send me a mail with a weblink where I can download a new version of this ISO image ? Or an alternate method to install Debian on this computer ... (I'm french, sorry for mistakes in my english ... :$ ) Thank you ! Bye ! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]