~ubuntu-branches/ubuntu/utopic/mariadb-5.5/utopic-security

« back to all changes in this revision

Viewing changes to debian/mariadb-server-5.5.mysql.init

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen
  • Date: 2014-08-27 21:12:36 UTC
  • mfrom: (2.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20140827211236-se41hwfe4xy0hpef
* d/control: Removed Provides: libmysqlclient-dev (Closes: #759309)
* d/control: Removed Provides: libmysqld-dev with same motivation
* Re-introduced tha HPPA build patch as the upstream fix wasn't complete
* Fixed all kFreeBSD build and test suite issues
* Added Italian translation (Closes: #759813)

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
    ps_alive=0
78
78
    pidfile=`mysqld_get_param pid-file`
79
79
    if [ -f "$pidfile" ] && ps `cat $pidfile` >/dev/null 2>&1; then ps_alive=1; fi
80
 
    
 
80
 
81
81
    if [ "$1" = "check_alive"  -a  $ping_alive = 1 ] ||
82
82
       [ "$1" = "check_dead"   -a  $ping_alive = 0  -a  $ps_alive = 0 ]; then
83
83
        return 0 # EXIT_SUCCESS
106
106
            test -e /var/run/mysqld || install -m 755 -o mysql -g root -d /var/run/mysqld
107
107
 
108
108
            # Start MariaDB!
109
 
            /usr/bin/mysqld_safe "${@:2}" 2>&1 >/dev/null | $ERR_LOGGER &
 
109
            /usr/bin/mysqld_safe "${@:2}" 2>&1 >/dev/null | $ERR_LOGGER &
110
110
 
111
111
            # 6s was reported in #352070 to be too few when using ndbcluster
112
112
            for i in $(seq 1 "${MYSQLD_STARTUP_TIMEOUT:-30}"); do
128
128
 
129
129
  'stop')
130
130
        # * As a passwordless mysqladmin (e.g. via ~/.my.cnf) must be possible
131
 
        # at least for cron, we can rely on it here, too. (although we have 
 
131
        # at least for cron, we can rely on it here, too. (although we have
132
132
        # to specify it explicit as e.g. sudo environments points to the normal
133
133
        # users home and not /root)
134
134
        log_daemon_msg "Stopping MariaDB database server" "mysqld"
161
161
 
162
162
  'restart')
163
163
        set +e; $SELF stop; set -e
 
164
  shift
164
165
        $SELF start "${@}"
165
166
        ;;
166
167
 
184
185
        exit 1
185
186
        ;;
186
187
esac
187