File manager - Edit - /var/www/payraty/helpdesk/public/storage/branding_media/images/init.zip
Back
PK ! ��� � mysql.confnu �[��� description "MySQL 5.7 Server" author "Mario Limonciello <superm1@ubuntu.com>" start on runlevel [2345] stop on starting rc RUNLEVEL=[016] respawn respawn limit 2 5 env HOME=/etc/mysql umask 007 # The default of 5 seconds is too low for mysql which needs to flush buffers kill timeout 300 pre-start script ## Fetch a particular option from mysql's invocation. # Usage: void mysqld_get_param option mysqld_get_param() { /usr/sbin/mysqld --print-defaults \ | tr " " "\n" \ | grep -- "--$1" \ | tail -n 1 \ | cut -d= -f2 } # priority can be overriden and "-s" adds output to stderr ERR_LOGGER="logger -p daemon.err -t /etc/init/mysql.conf -i" #Sanity checks [ -r $HOME/my.cnf ] [ -d /var/run/mysqld ] || install -m 755 -o mysql -g root -d /var/run/mysqld /lib/init/apparmor-profile-load usr.sbin.mysqld # check for diskspace shortage datadir=`mysqld_get_param datadir` BLOCKSIZE=`LC_ALL=C df --portability $datadir/. | tail -n 1 | awk '{print $4}'` if [ $BLOCKSIZE -le 4096 ] ; then echo "$0: ERROR: The partition with $datadir is too full!" >&2 echo "ERROR: The partition with $datadir is too full!" | $ERR_LOGGER exit 1 fi end script exec /usr/sbin/mysqld post-start script for i in `seq 1 30` ; do /usr/bin/mysqladmin --defaults-file="${HOME}"/debian.cnf ping && { exec "${HOME}"/debian-start # should not reach this line exit 2 } statusnow=`status` if echo $statusnow | grep -q 'stop/' ; then exit 0 elif echo $statusnow | grep -q 'respawn/' ; then exit 1 fi sleep 1 done exit 1 end script PK ! �:м � vars.shnu �[��� # # Set rcS vars # # Because /etc/default/rcS isn't a conffile, it's never updated # automatically. So that an empty or outdated file missing newer # options works correctly, set the default values here. TMPTIME=0 SULOGIN=no DELAYLOGIN=no UTC=yes VERBOSE=no FSCKFIX=no # Source conffile if [ -f /etc/default/rcS ]; then . /etc/default/rcS fi # Unset old unused options unset EDITMOTD unset RAMRUN unset RAMLOCK # Don't unset RAMSHM and RAMTMP for now. # Parse kernel command line if [ -r /proc/cmdline ]; then for ARG in $(cat /proc/cmdline); do case $ARG in # check for bootoption 'noswap' and do not activate swap # partitions/files when it is set. noswap) NOSWAP=yes ;; # Accept the same 'quiet' option as the kernel, but only # during boot and shutdown. Only use this rule when the # variables set by init.d/rc is present. quiet) if [ "$RUNLEVEL" ] && [ "$PREVLEVEL" ] ; then VERBOSE="no" fi ;; esac done fi # But allow both rcS and the kernel options 'quiet' to be overrided # when INIT_VERBOSE=yes is used as well. if [ "$INIT_VERBOSE" ] ; then VERBOSE="$INIT_VERBOSE" fi PK ! \>