[71637] trunk/dports/sysutils/beanstalkd/Portfile

nick at macports.org nick at macports.org
Sat Sep 18 11:35:30 PDT 2010


Revision: 71637
          http://trac.macports.org/changeset/71637
Author:   nick at macports.org
Date:     2010-09-18 11:35:27 -0700 (Sat, 18 Sep 2010)
Log Message:
-----------
Added startupitem definition for launchd to auto-load beanstalkd on startup. Closes #26521

Modified Paths:
--------------
    trunk/dports/sysutils/beanstalkd/Portfile

Modified: trunk/dports/sysutils/beanstalkd/Portfile
===================================================================
--- trunk/dports/sysutils/beanstalkd/Portfile	2010-09-18 16:34:16 UTC (rev 71636)
+++ trunk/dports/sysutils/beanstalkd/Portfile	2010-09-18 18:35:27 UTC (rev 71637)
@@ -4,7 +4,7 @@
 
 name			beanstalkd
 version			1.4.6
-revision		0
+revision		1
 description		a fast, distributed, in-memory workqueue service
 long_description	\
 	beanstalkd is a fast, distributed, in-memory workqueue service. \
@@ -26,3 +26,17 @@
 configure.args      --prefix=${prefix} \
                     --with-event=${prefix}
 
+startupitem.create      yes
+startupitem.executable  ${prefix}/bin/beanstalkd -u nobody
+
+post-activate {
+    ui_msg "###########################################################"
+    ui_msg "# To launch beanstalkd manually, run:"
+    ui_msg "# "
+    ui_msg "# sudo launchctl load -w /Library/LaunchDaemons/org.macports.beanstalkd.plist"
+    ui_msg "# "
+    ui_msg "# and to stop beanstalkd, run:"
+    ui_msg "# "
+    ui_msg "# sudo launchctl unload -w /Library/LaunchDaemons/org.macports.beanstalkd.plist"
+    ui_msg "###########################################################"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100918/57950409/attachment.html>


More information about the macports-changes mailing list