[MacPorts] #35183: mysql5-server: Simple stop/start applescript

MacPorts noreply at macports.org
Fri Jul 13 10:10:36 PDT 2012


#35183: mysql5-server: Simple stop/start applescript
----------------------------------+-----------------------------------------
 Reporter:  ctreleaven@…          |       Owner:  macports-tickets@…                   
     Type:  enhancement           |      Status:  new                                  
 Priority:  Normal                |   Milestone:                                       
Component:  ports                 |     Version:  2.1.1                                
 Keywords:                        |        Port:  mysql5-server                        
----------------------------------+-----------------------------------------
 Attached is an Applescript that simplifies the process of starting and
 stopping the mysql server.  Screen capture at:

 https://dl.dropbox.com/u/26787680/StopStartMySQL.png

 It displays whether MySQL server is running/not running and,
 correspondingly offers to Stop/Start the daemon.  It only stops the server
 IF launchd reports that it is running "mysql5".  If the user also has
 installed MySQL from a .dmg (non-MacPorts), we leave it alone and display
 an error message.

 To add this to the mysql5-server install, as an Applescript applet, put
 the scpt in Files and add a line (probably to post-destroot) such as:

 {{{
 system "osacompile -x -o
 ${destroot}${applications_dir}/somedir/MySQL_Stop_Start.app
 ${filespath}/MySQL_Stop_Start.scpt"
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/35183>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list