[MacPorts] #35183: mysql5-server: Simple stop/start applescript
#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
#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 ----------------------------------+----------------------------------------- Comment(by cal@…): The mysql5-server port already installs a startup item that can conveniently be started using `sudo port load mysql5-server` and stopped with `sudo port unload mysql5-server`. Does this script provide any benefit over this? -- Ticket URL: <https://trac.macports.org/ticket/35183#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 ----------------------------------+----------------------------------------- Comment(by ctreleaven@…): Advantages: 1) It displays whether or not the server is running. I suspect I'm not the only one that has forgotten that a background process is already running! ;) 2) Point and click rather than remember and type. Similar to the System Preferences panel that the official .dmg installs: https://dl.dropbox.com/u/26787680/MySQLPrefPanel.png -- Ticket URL: <https://trac.macports.org/ticket/35183#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 ----------------------------------+----------------------------------------- Comment(by pixilla@…): Your attached .scpt file has Myth functionality. Perhaps you attached the wrong file. Let's save these types of AppleScript files as text files so they are more easily read by humans, they can still be compiled with osacomile. -- Ticket URL: <https://trac.macports.org/ticket/35183#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 ----------------------------------+----------------------------------------- Comment(by ctreleaven@…): Hmm, plain text version now attached--s/b MySQL control, only. -- Ticket URL: <https://trac.macports.org/ticket/35183#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 ----------------------------------+----------------------------------------- Comment(by ctreleaven@…): Viewed online, AppleScript's line breaks (Option-Return) show a question mark symbol. Let me know if that causes any harm when downloaded. -- Ticket URL: <https://trac.macports.org/ticket/35183#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35183: mysql51, mysql55, percona, mariadb: Simple stop/start applescript ----------------------------------+----------------------------------------- Reporter: ctreleaven@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: mysql51, mysql55, percona, mariadb ----------------------------------+----------------------------------------- Changes (by ryandesign@…): * cc: quest@…, jogwtr@… (added) * port: mysql5-server => mysql51, mysql55, percona, mariadb Comment: mysql5-server is going away. If these changes are to be incorporated, it would be into the mysql51 / mysql55 / percona / mariadb ports. However, this problem is hardly unique to the MySQL ports. Any port that installs a launchd plist could be said to benefit from such a script. Why not make it generic, so that it can control any launchd plist, and make it a separate port? Perhaps you even want to simply use one of the existing launchd management programs that exist, such as [http://www.macports.org/ports.php?by=name&substr=lingon lingon]. -- Ticket URL: <https://trac.macports.org/ticket/35183#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts