Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Sep 2002 15:58:43 +0300
From:      Odhiambo Washington <wash@wananchi.com>
To:        Ulrich 'Q' Spoerlein <q@uni.de>
Cc:        Odhiambo Washington <wash@wananchi.com>, freebsd-stable@freebsd.org
Subject:   Re: 4.7-PRERELEASE FAILING!!
Message-ID:  <20020919125842.GE5415@ns2.wananchi.com>
In-Reply-To: <h0hjou8bqplojldskihgdfdvqjbje8n5ue@4ax.com>
References:  <20020919115412.GB5415@ns2.wananchi.com> <5.1.0.14.0.20020919080934.0329de80@192.168.0.12> <20020919122039.GC5415@ns2.wananchi.com> <h0hjou8bqplojldskihgdfdvqjbje8n5ue@4ax.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
* Ulrich 'Q' Spoerlein <q@uni.de> [20020919 15:37]: wrote:
> On Thu, 19 Sep 2002 15:20:39 +0300, you wrote:
> 
> >> >When I start them manually they do start however. I did not make any
> >> >changes to the rc files during mergemaster.
> >> 
> >> You must have accidentally changed something at mergemaster / install time. 
> >> Double check that the files in /etc/ didnt get incorrectly altered.  Also, 
> >> dmesg -a might still have your bootup info stored and it might offer a clue 
> >> as to what went wrong.
> >
> >Thanks for the quick response. During mergemaster, I am pretty sure no critical
> >file changed. I may swear this and be proved wrong though/
> 
> re-run your mergemaster with the -s option and make sure all files are as
> accurate as possible.

Will do. Thanks.


> >What I need to find out is which file controls the starting of the scripts in rc.d/
> >
> >The first clue I have about all this is that I realized that mysql-server.sh
> >refused to start. When I attempted to start it manually the system complained that
> >there was "&&" that was unexpected. So I am wondering whether the syntax for /bin/sh
> >has changed??? There has never been a probem with these scripts before. They cannot
> 
> yes, "command1 & && command2" won't work any longer. please update your
> mysql ports as there are new startup scripts (or replace mysql & && echo
> mysql with mysql &; echo mysql)

Where is this documented? I missed it. Is this relevant to 4.6 also? I find a problem,
for example this line:

/usr/local/bin/safe_mysqld --user=mysql --log=/var/log/mysql.log > /dev/null && echo -n ' mysqld'

On a 4.6 when I try the change you suggest, it complains about the ";", as in

/usr/local/bin/safe_mysqld --user=mysql --log=/var/log/mysql.log > /dev/null &; echo -n ' mysqld'

That is wrong isn't it? Moreso, when I change the & &&, then I cannot do ./mysql-server.sh start,
because then it doesn't detach from the tty.....


> aside from mysql-server.sh which scripts are failing too? do they include
> the "& &&" syntax?


All the scripts in there failed to start - ALL of them.
I have tpop3d.sh, exim.sh, proftppd.sh, apache.sh, drwebd.sh ..
I mean I have to start all of them manually :-(

Please allow me to bother you with this by attaching the scripts.
I believe there is something else that has made them fail.
If only I could zero in on it.


THANK YOU SO MUCH for taking your time to see me through this. I am most grateful.



-Wash

S y s t e m s   A d m i n i s t r a t o r
-- 

------=====================================------
Odhiambo Washington		Wananchi Online Ltd 
E: WASH@wananchi.com		www.wananchi.com 
P: (+254)2 313 985-9		1st Floor Loita Hse 
F: (+254)2 313 922		Loita St., NAIROBI 
------=====================================------
++
"Nuclear war would really set back cable."
		-- Ted Turner

[-- Attachment #2 --]
#!/bin/sh

if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
    echo "$0: Cannot determine the PREFIX" >&2
    exit 1
fi

case "$1" in
start)
	[ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl startssl > /dev/null && echo -n ' apache'
	;;
stop)
	[ -r /var/run/httpd.pid ] && ${PREFIX}/sbin/apachectl stop > /dev/null && echo -n ' apache'
	;;
*)
	echo "Usage: `basename $0` {start|stop}" >&2
	;;
esac

exit 0

[-- Attachment #3 --]
#!/bin/sh
#
# $Id$
#
# Note that 'pidfile' may need to be changed if 'args' is altered; see
# the description of the 'pid_file_path' Exim configuration option in
# the Exim Specification.
#

pidfile='/usr/local/drweb/run/drwebd.pid'

case "$1" in
start)
        [ -x /usr/local/drweb/drwebd ] && /usr/local/drweb/drwebd && \
            echo -n ' drwebd started'
        ;;
stop)
        killall drwebd && echo -n ' drwebd stopped'
        ;;
*)
        echo "Usage: `basename $0` {start|stop}" >&2
        exit 64
        ;;
esac

exit 0

[-- Attachment #4 --]
#!/bin/sh
smbspool=/var/spool/samba
pidfiledir=/var/run
smbd=/usr/local/sbin/smbd
nmbd=/usr/local/sbin/nmbd

# start
if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
	if [ -f $smbd ]; then
		if [ -d $smbspool ]; then
			rm -f $smbspool/*
		fi
		echo -n ' Samba'
		$smbd -D
		$nmbd -D
	fi

# stop
elif [ "x$1" = "xstop" ]; then
	kill `cat $pidfiledir/smbd.pid`
	kill `cat $pidfiledir/nmbd.pid`
fi

[-- Attachment #5 --]
#!/bin/sh

case "$1" in

start)
	/bin/mkdir -p /var/run/proftpd
	if [ -x /usr/local/libexec/proftpd ]; then
		/usr/local/libexec/proftpd && echo -n ' proftpd'
	fi
	;;

stop)
	killall proftpd
	;;
*)
	echo "$0 start | stop"
	;;

esac

[-- Attachment #6 --]
#!/bin/sh
#
# $FreeBSD: ports/net/openldap2/files/slapd.sh,v 1.1 2000/09/25 05:43:46 knu Exp $

slapd=/usr/local/libexec/slapd
pidfile=/var/run/slapd.pid

case "$1" in
start)
    if [ -x $slapd ]; then
	echo -n ' slapd'
	$slapd
    fi
    ;;
stop)
    if [ -f $pidfile ]; then
	kill `cat $pidfile`
	telnet localhost ldap </dev/null >/dev/null 2>&1
	echo -n ' slapd'
	rm $pidfile
    else
	echo ' slapd: not running'
    fi
    ;;
*)
    echo "Usage: `basename $0` {start|stop}" >&2
    exit 64
    ;;
esac

exit 0

[-- Attachment #7 --]
#!/bin/sh

if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
    echo "$0: Cannot determine the PREFIX" >&2
    exit 1
fi

case "$1" in
start)
	[ -x ${PREFIX}/bin/spamd ] && ${PREFIX}/bin/spamd -a -c -d && echo -n ' spamd'
#	[ -x ${PREFIX}/bin/spamd ] && ${PREFIX}/bin/spamd -d -u nobody && echo -n ' spamd'
	;;
stop)
	;;
*)
	echo "Usage: `basename $0` {start|stop}" >&2
	;;
esac

exit 0

[-- Attachment #8 --]
#!/bin/sh
#
# tpop3d:
# Init script for starting/stopping tpop3d.
#
# Copyright (c) 2001 Chris Lightfoot. All rights reserved.
#  Portability enhanced by Chris Elsworth, July 2001
#
# $FreeBSD: ports/mail/tpop3d/files/tpop3d.sh.sample,v 1.1 2001/08/31 05:43:57 petef Exp $
#

if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
    echo "$0: Cannot determine the PREFIX" >&2
    exit 1
fi

DAEMON=$PREFIX/sbin/tpop3d

[ -f $DAEMON ] || exit 0

# See how we were called.
case "$1" in
  start)
        # Start daemons.
        $DAEMON -f $PREFIX/etc/tpop3d.conf -p /var/run/tpop3d.pid \
		&& echo -n " tpop3d"
        ;;
  stop)
        # Stop daemons.
	[ -r /var/run/tpop3d.pid ] && kill `cat /var/run/tpop3d.pid` \
		&& echo -n " tpop3d"
        ;;
  restart)
	$0 stop
	$0 start
	;;
  reload)
  	[ -r /var/run/tpop3d.pid ] && kill -HUP `cat /var/run/tpop3d.pid`
        ;;
  *)
        echo "Usage: `basename $0` {start|stop|restart|reload}"
        exit 1
esac

exit 0

[-- Attachment #9 --]
#!/bin/sh
#
# $Id$
#
# Note that 'pidfile' may need to be changed if 'args' is altered; see
# the description of the 'pid_file_path' Exim configuration option in
# the Exim Specification.
#
args='-bd -q30m'
pidfile='/var/run/exim.pid'

case "$1" in
start)
        [ -x /usr/local/sbin/exim ] && /usr/local/sbin/exim ${args} && \
	    echo -n ' exim'
        ;;
stop)
        kill `cat ${pidfile}` && echo -n ' exim'
        ;;
*)
        echo "Usage: `basename $0` {start|stop}" >&2
        exit 64
        ;;
esac

exit 0


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020919125842.GE5415>