> didn't it fail when you used -ex? Results of my "trial and error": sshd and mysql start up at boot if I remove the "set -e" line or change it to "set -x". mysql also fails with "set -ex". I did not touch other parts of the scripts. I get apache2 booting only by removing the "set" line and adding exec > /root/apache2.startup.log 2>&1
This file contains just one line: Starting web server: Apache2. > Ok, so what happens at bootup with: > > set -e > set -x > exec > /tmp... I tried that with MySQL. That script starts with: set -e set -u I changed this lines to: set -e set -x set -u exec > /tmp/mysql.startup.log 2>&1 Result: mysql starts up at boot. Content of the logfile: + test -x /usr/sbin/mysqld +++ dirname /etc/rc2.d/S20mysql ++ cd /etc/rc2.d ++ pwd -P ++ basename /etc/rc2.d/S20mysql + SELF=/etc/rc2.d/S20mysql + CONF=/etc/mysql/my.cnf + MYADMIN=/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf + RUNDIR=/var/run/mysqld/ + ERR_LOGGER=logger -p daemon.err -t /etc/init.d/mysql -i + cd / + umask 077 + export PATH=/bin:/usr/bin + PATH=/bin:/usr/bin + export HOME=/etc/mysql/ + HOME=/etc/mysql/ + '[' '!' -r /etc/mysql/my.cnf ']' + '[' '!' -d /var/run/mysqld/ ']' + echo -n 'Starting MySQL database server: mysqld' Starting MySQL database server: mysqld+ mysqld_status check_alive nowarn ++ /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping + ping_output=/usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists! + ping_alive=0 + ps_alive=0 ++ mysqld_get_param pid-file ++ /usr/sbin/mysqld --print-defaults ++ tr ' ' '\n' ++ grep -- --pid-file ++ tail -n 1 ++ cut -d= -f2 + pidfile=/var/run/mysqld/mysqld.pid + '[' -f /var/run/mysqld/mysqld.pid ']' + '[' check_alive = check_alive -a 0 = 1 ']' + '[' check_alive = check_dead -a 0 = 0 -a 0 = 0 ']' + '[' nowarn = warn ']' + return 1 + sleep 1 + /usr/bin/mysqld_safe + mysqld_status check_alive nowarn ++ /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping + ping_output=/usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists! + ping_alive=0 + ps_alive=0 ++ mysqld_get_param pid-file ++ /usr/sbin/mysqld --print-defaults ++ tr ' ' '\n' ++ grep -- --pid-file ++ tail -n 1 ++ cut -d= -f2 + pidfile=/var/run/mysqld/mysqld.pid + '[' -f /var/run/mysqld/mysqld.pid ']' + '[' check_alive = check_alive -a 0 = 1 ']' + '[' check_alive = check_dead -a 0 = 0 -a 0 = 0 ']' + '[' nowarn = warn ']' + return 1 + sleep 1 + mysqld_status check_alive nowarn ++ /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping + ping_output=mysqld is alive + ping_alive=1 + ps_alive=0 ++ mysqld_get_param pid-file ++ /usr/sbin/mysqld --print-defaults ++ tr ' ' '\n' ++ grep -- --pid-file ++ tail -n 1 ++ cut -d= -f2 + pidfile=/var/run/mysqld/mysqld.pid + '[' -f /var/run/mysqld/mysqld.pid ']' ++ cat /var/run/mysqld/mysqld.pid + ps 524 + ps_alive=1 + '[' check_alive = check_alive -a 1 = 1 ']' + return 0 + break + mysqld_status check_alive warn ++ /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping + ping_output=mysqld is alive + ping_alive=1 + ps_alive=0 ++ mysqld_get_param pid-file ++ /usr/sbin/mysqld --print-defaults ++ tr ' ' '\n' ++ grep -- --pid-file ++ tail -n 1 ++ cut -d= -f2 + pidfile=/var/run/mysqld/mysqld.pid + '[' -f /var/run/mysqld/mysqld.pid ']' ++ cat /var/run/mysqld/mysqld.pid + ps 524 + ps_alive=1 + '[' check_alive = check_alive -a 1 = 1 ']' + return 0 + echo . . + /etc/mysql/debian-start + /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf variables Checking for crashed MySQL tables in the background. + egrep -q 'have_bdb.*YES' -- Pepillo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

