Date: Tue, 6 Aug 2002 10:37:50 -0700 (PDT) From: Patrick Powell <papowell@astart.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/41385: mysql server startup script has syntax error Message-ID: <200208061737.g76Hbo100908@h110.private>
next in thread | raw e-mail | index | archive | help
>Number: 41385 >Category: ports >Synopsis: mysql server startup script has syntax error >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Aug 06 10:40:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Patrick Powell >Release: FreeBSD 4.6-RELEASE i386 >Organization: Astart Technologies >Environment: System: FreeBSD h110.private 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Thu Apr 25 16:13:58 PDT 2002 papowell@h110.private:/usr/src/sys/compile/TEST i386 >Description: file: /usr/ports/databases/mysql323-server/file/mysql-server.sh See the lines indicated below. #!/bin/sh case "$1" in start) if [ -x %%PREFIX%%/bin/safe_mysqld ]; then %%PREFIX%%/bin/safe_mysqld --user=mysql > /dev/null & && echo -n ' mysqld' *********************************************************** ^^^^^ syntax error *********************************************************** & is valid fi ;; stop) /usr/bin/killall mysqld > /dev/null 2>&1 && echo -n ' mysqld' ;; *) echo "" echo "Usage: `basename $0` { start | stop }" echo "" exit 64 ;; esac In 4.6-RELEASE and earlier versions the sequence 'command & && command' was allowed by the /bin/sh program. However, as of 4.6-STABLE (updated using CVS) this sequence is no longer valid. >How-To-Repeat: Install the port on different systems. Your startup script will fail. >Fix: Patch: *** files/mysql-server.sh Tue Aug 6 10:27:53 2002 --- files/mysql-server.sh.orig Tue Aug 6 10:26:54 2002 *************** *** 3,9 **** case "$1" in start) if [ -x %%PREFIX%%/bin/safe_mysqld ]; then ! %%PREFIX%%/bin/safe_mysqld --user=mysql > /dev/null & echo -n ' mysqld' fi ;; stop) --- 3,9 ---- case "$1" in start) if [ -x %%PREFIX%%/bin/safe_mysqld ]; then ! %%PREFIX%%/bin/safe_mysqld --user=mysql > /dev/null & && echo -n ' mysqld' fi ;; stop) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208061737.g76Hbo100908>