Sha256: e4cdd11e74cb69287420c1c1a51c86076561a81d6d6f5509cfa3fb851f5b7d99

Contents?: true

Size: 551 Bytes

Versions: 5

Compression:

Stored size: 551 Bytes

Contents

#!/sbin/sh
#
# Generated by Chef
# 

. /lib/svc/share/smf_include.sh

PIDFILE="/var/mysql/mysql.pid"

ulimit -n 10240

case "$1" in
start)
        /opt/local/sbin/mysqld --user=mysql \
                --basedir=/opt/local \
                --datadir=<%= @data_dir %> \
                --pid-file=${PIDFILE} \
                --log-error=/var/log/mysql/error.log &
        ;;
stop)
        [ -f ${PIDFILE} ] && kill `/usr/bin/head -1 ${PIDFILE}`
        ;;
*)
        echo "Usage: $0 {start|stop}" >&2
        exit 1
        ;;
esac

exit $SMF_EXIT_OK

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cloud-toaster-1.1.6 chef/cookbooks/mysql/templates/default/smartos/svc.method.mysqld.erb
cloud-toaster-1.1.5 chef/cookbooks/mysql/templates/default/smartos/svc.method.mysqld.erb
cloud-toaster-1.1.4 chef/cookbooks/mysql/templates/default/smartos/svc.method.mysqld.erb
cloud-toaster-1.1.3 chef/cookbooks/mysql/templates/default/smartos/svc.method.mysqld.erb
cloud-toaster-1.1.2 chef/cookbooks/mysql/templates/default/smartos/svc.method.mysqld.erb