cvs commit: BLFS/BOOK/introduction/welcome changelog.xml

Alexander E. Patrakov semzx at newmail.ru
Sun Jan 11 00:44:53 PST 2004


On Saturday 10 January 2004 21:03, igor at linuxfromscratch.org wrote:
> igor        04/01/10 09:03:56
>
>   Modified:    BOOK     index.xml
>                BOOK/content/databases/mysql mysql-config.xml
>                BOOK/introduction/welcome changelog.xml
>   Log:
>   modified MySQL init script to remove stale pid files
>   +                if test -f "$pid_file"
>   +                then
>   +                    if /bin/ps p `cat $pid_file` | grep mysqld
> >/dev/null +                    then
>   +                        print_status warning running
>   +                        exit 1

This is inconsistent with other packages. When I run the initscript e.g. for 
sshd with the "start" parameter while sshd is already running, it prints the 
"Already running" message, but exits with code 0.

>  +                if [ $failure = 1 ]
>  +                then
>  +                    (exit $failure)
>  +                    evaluate_retval

The last two lines can be simplified to "print_status failure".

-- 
Alexander E. Patrakov




More information about the blfs-book mailing list