Clean up LaunchAgent caveats.
Documentation now has instructions on creating ~/Library/LaunchAgents directory for first time installs of Formulas. Appending trailing slash to Formula documentation in regards to copying plists to LaunchAgents directory. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
bb8defeb5e
commit
9c6a41ddc6
10 changed files with 31 additions and 21 deletions
|
@ -24,6 +24,7 @@ class CouchdbLucene <Formula
|
|||
def caveats; <<-EOS
|
||||
You can enable couchdb-lucene to automatically load on login with:
|
||||
|
||||
mkdir -p ~/Library/LaunchAgents
|
||||
cp "#{prefix}/couchdb-lucene.plist" ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/couchdb-lucene.plist
|
||||
|
||||
|
|
|
@ -28,12 +28,13 @@ class Couchdb <Formula
|
|||
|
||||
def caveats; <<-EOS.undent
|
||||
If this is your first install, automatically load on login with:
|
||||
cp #{prefix}/Library/LaunchDaemons/org.apache.couchdb.plist ~/Library/LaunchAgents
|
||||
mkdir -p ~/Library/LaunchAgents
|
||||
cp #{prefix}/Library/LaunchDaemons/org.apache.couchdb.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/org.apache.couchdb.plist
|
||||
|
||||
If this is an upgrade and you already have the org.apache.couchdb.plist loaded:
|
||||
launchctl unload -w ~/Library/LaunchAgents/org.apache.couchdb.plist
|
||||
cp #{prefix}/Library/LaunchDaemons/org.apache.couchdb.plist ~/Library/LaunchAgents
|
||||
cp #{prefix}/Library/LaunchDaemons/org.apache.couchdb.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/org.apache.couchdb.plist
|
||||
|
||||
Or start manually with:
|
||||
|
|
|
@ -38,12 +38,13 @@ class DBus <Formula
|
|||
|
||||
def caveats; <<-EOS.undent
|
||||
If this is your first install, automatically load on login with:
|
||||
cp #{prefix}/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents
|
||||
mkdir -p ~/Library/LaunchAgents
|
||||
cp #{prefix}/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
|
||||
|
||||
If this is an upgrade and you already have the org.freedesktop.dbus-session.plist loaded:
|
||||
launchctl unload -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
|
||||
cp #{prefix}/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents
|
||||
cp #{prefix}/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
|
||||
EOS
|
||||
end
|
||||
|
|
|
@ -13,12 +13,13 @@ class Jenkins <Formula
|
|||
|
||||
def caveats; <<-EOS
|
||||
If this is your first install, automatically load on login with:
|
||||
cp #{prefix}/org.jenkins-ci.plist ~/Library/LaunchAgents
|
||||
mkdir -p ~/Library/LaunchAgents
|
||||
cp #{prefix}/org.jenkins-ci.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/org.jenkins-ci.plist
|
||||
|
||||
If this is an upgrade and you already have the org.jenkins-ci.plist loaded:
|
||||
launchctl unload -w ~/Library/LaunchAgents/org.jenkins-ci.plist
|
||||
cp #{prefix}/org.jenkins-ci.plist ~/Library/LaunchAgents
|
||||
cp #{prefix}/org.jenkins-ci.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/org.jenkins-ci.plist
|
||||
|
||||
Or start it manually:
|
||||
|
|
|
@ -25,13 +25,14 @@ class Memcached <Formula
|
|||
|
||||
def caveats; <<-EOS.undent
|
||||
You can enable memcached to automatically load on login with:
|
||||
mkdir -p ~/Library/LaunchAgents
|
||||
cp #{prefix}/com.danga.memcached.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/com.danga.memcached.plist
|
||||
|
||||
Or start it manually:
|
||||
#{HOMEBREW_PREFIX}/bin/memcached
|
||||
Or start it manually:
|
||||
#{HOMEBREW_PREFIX}/bin/memcached
|
||||
|
||||
Add "-d" to start it as a daemon.
|
||||
Add "-d" to start it as a daemon.
|
||||
EOS
|
||||
end
|
||||
|
||||
|
|
|
@ -35,12 +35,13 @@ class Mongodb <Formula
|
|||
|
||||
def caveats; <<-EOS
|
||||
If this is your first install, automatically load on login with:
|
||||
cp #{prefix}/org.mongodb.mongod.plist ~/Library/LaunchAgents
|
||||
mkdir -p ~/Library/LaunchAgents
|
||||
cp #{prefix}/org.mongodb.mongod.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/org.mongodb.mongod.plist
|
||||
|
||||
If this is an upgrade and you already have the org.mongodb.mongod.plist loaded:
|
||||
launchctl unload -w ~/Library/LaunchAgents/org.mongodb.mongod.plist
|
||||
cp #{prefix}/org.mongodb.mongod.plist ~/Library/LaunchAgents
|
||||
cp #{prefix}/org.mongodb.mongod.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/org.mongodb.mongod.plist
|
||||
|
||||
Or start it manually:
|
||||
|
|
|
@ -72,12 +72,13 @@ class Mysql <Formula
|
|||
mysql_install_db
|
||||
|
||||
If this is your first install, automatically load on login with:
|
||||
cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents
|
||||
mkdir -p ~/Library/LaunchAgents
|
||||
cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
|
||||
|
||||
If this is an upgrade and you already have the com.mysql.mysqld.plist loaded:
|
||||
launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
|
||||
cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents
|
||||
cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
|
||||
|
||||
Note on upgrading:
|
||||
|
@ -115,11 +116,11 @@ end
|
|||
|
||||
|
||||
__END__
|
||||
--- old/scripts/mysqld_safe.sh 2009-09-02 04:10:39.000000000 -0400
|
||||
+++ new/scripts/mysqld_safe.sh 2009-09-02 04:52:55.000000000 -0400
|
||||
--- old/scripts/mysqld_safe.sh 2009-09-02 04:10:39.000000000 -0400
|
||||
+++ new/scripts/mysqld_safe.sh 2009-09-02 04:52:55.000000000 -0400
|
||||
@@ -383,7 +383,7 @@
|
||||
fi
|
||||
|
||||
|
||||
USER_OPTION=""
|
||||
-if test -w / -o "$USER" = "root"
|
||||
+if test -w /sbin -o "$USER" = "root"
|
||||
|
|
|
@ -64,7 +64,8 @@ change that to localhost:80, and run `sudo nginx`. You'll need to turn off
|
|||
any other web servers running port 80, of course.
|
||||
|
||||
You can start nginx automatically on login with:
|
||||
cp #{prefix}/org.nginx.plist ~/Library/LaunchAgents
|
||||
mkdir -p ~/Library/LaunchAgents
|
||||
cp #{prefix}/org.nginx.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/org.nginx.plist
|
||||
|
||||
CAVEATS
|
||||
|
|
|
@ -100,12 +100,13 @@ If this is your first install, create a database with:
|
|||
initdb #{var}/postgres
|
||||
|
||||
If this is your first install, automatically load on login with:
|
||||
cp #{prefix}/org.postgresql.postgres.plist ~/Library/LaunchAgents
|
||||
mkdir -p ~/Library/LaunchAgents
|
||||
cp #{prefix}/org.postgresql.postgres.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
|
||||
|
||||
If this is an upgrade and you already have the org.postgresql.postgres.plist loaded:
|
||||
launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
|
||||
cp #{prefix}/org.postgresql.postgres.plist ~/Library/LaunchAgents
|
||||
cp #{prefix}/org.postgresql.postgres.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
|
||||
|
||||
Or start manually with:
|
||||
|
|
|
@ -34,12 +34,13 @@ class Redis <Formula
|
|||
def caveats
|
||||
<<-EOS.undent
|
||||
If this is your first install, automatically load on login with:
|
||||
cp #{prefix}/io.redis.redis-server.plist ~/Library/LaunchAgents
|
||||
mkdir -p ~/Library/LaunchAgents
|
||||
cp #{prefix}/io.redis.redis-server.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist
|
||||
|
||||
If this is an upgrade and you already have the io.redis.redis-server.plist loaded:
|
||||
launchctl unload -w ~/Library/LaunchAgents/io.redis.redis-server.plist
|
||||
cp #{prefix}/io.redis.redis-server.plist ~/Library/LaunchAgents
|
||||
cp #{prefix}/io.redis.redis-server.plist ~/Library/LaunchAgents/
|
||||
launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist
|
||||
|
||||
To start redis manually:
|
||||
|
|
Loading…
Reference in a new issue