Sha256: 93a029549c2ca6ab4c759c61ac188512a916a8d11788a82574966c13e028b5d6

Contents?: true

Size: 556 Bytes

Versions: 5

Compression:

Stored size: 556 Bytes

Contents

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

. /lib/svc/share/smf_include.sh

PIDFILE=<%= @pid_file %>

ulimit -n 10240

case "$1" in
start)
        <%= @base_dir %>/bin/mysqld --user=mysql \
                --basedir=<%= @base_dir %> \
                --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/omnios/svc.method.mysqld.erb
cloud-toaster-1.1.5 chef/cookbooks/mysql/templates/default/omnios/svc.method.mysqld.erb
cloud-toaster-1.1.4 chef/cookbooks/mysql/templates/default/omnios/svc.method.mysqld.erb
cloud-toaster-1.1.3 chef/cookbooks/mysql/templates/default/omnios/svc.method.mysqld.erb
cloud-toaster-1.1.2 chef/cookbooks/mysql/templates/default/omnios/svc.method.mysqld.erb