[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[gknab@asamnet.de: autofs: /etc/init.d/autofs now writes pidfiles



Hi there!

May be my solution is useful for others ...

gk

----- Forwarded message to Debian Bug Tracking System <196241@bugs.debian.org> -----


Envelope-to: gk@localhost
X-Sieve: cmu-sieve 2.0
From: "GXnter Knab" <gknab@asamnet.de>
To: Debian Bug Tracking System <196241@bugs.debian.org>
Subject: autofs: modified options to start-stop-daemon in /etc/init.d/autofs
X-Virus-Scanned: by amavisd-new at asamnet.de
X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char FC hex) in message header 'From'
  From: "G\374nter Knab" <gkn...          ^
X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on mail.asamnet.de
X-Spam-Level: 
X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham 
	version=2.64

Package: autofs
Version: 3.9.99-4.0.0pre10-1
Followup-For: Bug #196241

The script '/etc/init.d/autofs' doesn't create pidfiles in directory
'/var/run/autofs/' as espected.  Reason is an incomplete invocation of
the start-stop-daemon.  Details of system and diff-patch appended.

-- System Information
Debian Release: 3.0
Architecture: alpha
Kernel: Linux alpha 2.2.19 #4 Tue Sep 17 21:49:51 CEST 2002 alpha
Locale: LANG=C, LC_CTYPE=C

Versions of packages autofs depends on:
ii  libc6.1                 2.2.5-11.5       GNU C Library: Shared libraries an
ii  procps                  1:2.0.7-8.woody1 The /proc file system utilities.


# start-stop-daemon --version
start-stop-daemon 1.9.21

# diff -c /etc/init.d/{autofs.in#4,autofs}
*** /etc/init.d/autofs.in#4     Tue Apr 16 01:33:46 2002
--- /etc/init.d/autofs  Mon Nov 15 18:19:44 2004
***************
*** 1,4 ****
--- 1,5 ----
  #! /bin/bash
+ # 2004-11-15: gknab@asamnet.de: scripts now writes pidfile (debian-alpha)
  #
  # $Id: //depot/autofs-4.0/samples/rc.autofs.in#4 $
  #
***************
*** 342,348 ****
                fi
                pidfile=/var/run/autofs/`echo $mnt | sed 's,_,__,g;s,/,_:,g'`.p\
id
                start-stop-daemon --start --pidfile $pidfile --quiet \
!                       --exec $DAEMON -- $opt $mnt $rest
        done
        echo "done."
        ;;
--- 343,349 ----
                fi
                pidfile=/var/run/autofs/`echo $mnt | sed 's,_,__,g;s,/,_:,g'`.p\
id
                start-stop-daemon --start --pidfile $pidfile --quiet \
!                       --exec $DAEMON -- -p $pidfile $opt $mnt $rest
        done
        echo "done."
        ;;


----- End forwarded message -----



Reply to: