--- autofs      Thu May 24 02:54:28 2001
+++ autofs.new  Thu May 24 02:54:19 2001
@@ -244,10 +244,10 @@
         TMP1=`mktemp /tmp/autofs.XXXXXX` || { echo "could not make temp file" >& 2; 
exit 1; }
         TMP2=`mktemp /tmp/autofs.XXXXXX` || { echo "could not make temp file" >& 2; 
exit 1; }
        getmounts >$TMP1
-       ps ax|grep "[0-9]:[0-9][0-9] $DAEMON " | (
+       ps axwww|grep "[0-9]:[0-9][0-9] $DAEMON " | (
            while read pid tt stat time command; do
                echo "$command" >>$TMP2
-               if ! grep -q "^$command" $TMP2; then
+               if ! grep -q "^$command" $TMP1; then
                        while kill -USR2 $pid; do
                            sleep 3
                        done

seb

On Thu, 24 May 2001, R.I.P. Deaddog wrote:

>
> Have to use "ps awwx".
>
>
> On Wed, 23 May 2001, Sebastian Dransfeld wrote:
>
> >
> > When I run "service sutofs reload" the running automount's are checked
> > with
> > root@s186b:/tmp# ps ax|grep "[0-9]:[0-9][0-9] /usr/sbin/automount "
> > 16227 ?        S      0:00 /usr/sbin/automount --timeout 60 /local file /etc/aut
> > 16250 ?        S      0:00 /usr/sbin/automount --timeout 60 /net file /etc/auto.
> > 16503 pts/2    S      0:00 /usr/sbin/automount --timeout 60 /local file /etc/aut
> > 16509 pts/2    S      0:00 /usr/sbin/automount --timeout 60 /net file /etc/auto.
> > 16668 pts/1    S      0:00 /usr/sbin/automount --timeout 60 /local file /etc/aut
> > 16674 pts/1    S      0:00 /usr/sbin/automount --timeout 60 /net file /etc/auto.
> >
> > And as you can see, the lines are chopped. This results in that the
> > running commands are never matched and never killed.
> >
> > So why does grep chop the output? Or is it just the way it's supposed to
> > be, and /etc/init.d/autofs needs mending?
> >
> > seb
> >
> >
> >
>
>



Reply via email to