Skip to content
Permalink
Browse files

Bug: https://trac.macports.org/ticket/5203, https://trac.macports.org…

…/ticket/5309

Submitted by:   joe@netmusician.org
Reviewed by:    mww@, jbj@

fix startup-item

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@14513 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Oct 9, 2005
1 parent 9afcb11 commit 6a482430dc2cf70379f0551cf84efd5019687a65
Showing with 6 additions and 4 deletions.
  1. +6 −4 databases/mysql4/Portfile
@@ -1,8 +1,9 @@
# $Id: Portfile,v 1.20 2005/10/07 13:12:31 mww Exp $
# $Id: Portfile,v 1.21 2005/10/09 21:10:41 mww Exp $

PortSystem 1.0
name mysql4
version 4.1.14
revision 1
categories databases
maintainers michaelm@opendarwin.org
description Multithreaded SQL database server
@@ -84,9 +85,10 @@ configure.args --sysconfdir=${prefix}/etc/${name} --without-debug \
--with-mysqld-user=mysql

variant server {
startupitem.create yes
startupitem.start "${prefix}/bin/mysqld_safe --user=mysql --pid-file=${prefix}/var/run/mysqld/mysqld.pid"
startupitem.stop "/usr/bin/kill -15 \$(cat ${prefix}/var/run/mysqld/mysqld.pid)"
# Create a startupitem to start/stop the server
startupitem.create yes
startupitem.start "${prefix}/share/mysql/mysql.server start"
startupitem.stop "${prefix}/share/mysql/mysql.server stop"
}

pre-destroot {

0 comments on commit 6a48243

Please sign in to comment.
You can’t perform that action at this time.