SOURCES (AC-branch): mysql.init - try first graceful shutdown (via...

Arkadiusz Miskiewicz arekm w pld-linux.org
Czw, 16 Gru 2004, 09:34:41 CET


On Wednesday 15 of December 2004 23:48, glen wrote:

> +
> +# TODO
> +#  graceful mysql shutdown with mysqladmin shutdown requires 'shutdown'
> +#  privilege. create new user mysqlctl or rename mysql_logrotate to
> mysqlctl +#  and give it both privs (flush-logs and shutdown)?
> +
> + # try graceful shutdown -- send shutdown command
> + /usr/bin/mysqladmin --defaults-file=$MYSQL_CONFIG
> ${MYSQL_SOCKET:+--socket=$MYSQL_SOCKET} shutdown + # 3 seconds
> + for nr in 1 2 3; do
> +  [ -d "/proc/$MYSQL_PID" ] && sleep 1
> + done
> + mysqlstatus "$clusterdir"
Oh, but root doesn't have these rights so there will be problem :/ Please 
remove this until this issue is solved or... redirect errors to /dev/null :)

-- 
Arkadiusz Miśkiewicz                    PLD/Linux Team
http://www.t17.ds.pwr.wroc.pl/~misiek/  http://ftp.pld-linux.org/




Więcej informacji o liście dyskusyjnej pld-devel-pl