~otto/maria/5.5.37-0ubuntu0.14.04.1

« back to all changes in this revision

Viewing changes to scripts/mysqld_safe.sh

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen, Otto Kekäläinen, James Page
  • Date: 2013-12-22 10:28:14 UTC
  • Revision ID: package-import@ubuntu.com-20131222102814-dvryvsdyl8m3u2az
Tags: 5.5.32-1
[ Otto Kekäläinen ]
* Initial package for Debian (Closes: #565308), based on upstream
  packaging:
  - mariadb-5.3 by Sergei Golubchik
  - mariadb-5.2 by Kristian Nielsen
  - mariadb-5.1 by Peter Lieverdink
* Bring packaging up-to-date inline with mysql-5.5 packaging.
* Refine control file and tidy lintian warnings
* Rename libmysqlclient18 -> libmariadbclient18.
* Add suitable Breaks/Replaces/Provides to support migration
  to/from mysql-server-5.5.
* Plus multiple other updates based on feedback from Debian maintainers

[ James Page ]
* d/control,rules: Cherry picked fix from mysql-5.5 packaging to disable
  x86 assembler in taocrypt on i386 architectures, removing need for
  gcc-4.4 dependency.
* d/control: Add myself to uploaders.
* d/control: Update Vcs fields for new location on git.debian.org.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
 
1
#!/bin/bash
2
2
# Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB
3
3
# This file is public domain and comes with NO WARRANTY of any kind
4
4
#
30
30
syslog_tag_mysqld=mysqld
31
31
syslog_tag_mysqld_safe=mysqld_safe
32
32
 
33
 
trap '' 1 2 3 15                        # we shouldn't let anyone kill us
34
33
 
35
34
# MySQL-specific environment variable. First off, it's not really a umask,
36
35
# it's the desired mode. Second, it follows umask(2), not umask(3) in that
157
156
      # sed buffers output (only GNU sed supports a -u (unbuffered) option)
158
157
      # which means that messages may not get sent to syslog until the
159
158
      # mysqld process quits.
160
 
      cmd="$cmd 2>&1 | logger -t '$syslog_tag_mysqld' -p daemon.error"
 
159
      cmd="$cmd 2>&1 | logger -t '$syslog_tag_mysqld' -p daemon.error & wait"
161
160
      ;;
162
161
    *)
163
162
      echo "Internal program error (non-fatal):" \
762
761
fi
763
762
 
764
763
#
 
764
# From now on, we catch signals to do a proper shutdown of mysqld
 
765
# when signalled to do so.
 
766
#
 
767
trap '/usr/bin/mysqladmin --defaults-extra-file=/etc/mysql/debian.cnf refresh & wait' 1 # HUP
 
768
trap '/usr/bin/mysqladmin --defaults-extra-file=/etc/mysql/debian.cnf shutdown' 2 3 15 # INT QUIT and TERM
 
769
 
 
770
#
765
771
# Uncomment the following lines if you want all tables to be automatically
766
772
# checked and repaired during startup. You should add sensible key_buffer
767
773
# and sort_buffer values to my.cnf to improve check performance or require