[pypy-svn] r36252 - pypy/dist/pypy/tool/build/bin

guido at codespeak.net guido at codespeak.net
Mon Jan 8 12:42:52 CET 2007


Author: guido
Date: Mon Jan  8 12:42:51 2007
New Revision: 36252

Modified:
   pypy/dist/pypy/tool/build/bin/gentoo_init.d
Log:
(cfbolz, guido) backgrounding process, taking care of logging and pid file.


Modified: pypy/dist/pypy/tool/build/bin/gentoo_init.d
==============================================================================
--- pypy/dist/pypy/tool/build/bin/gentoo_init.d	(original)
+++ pypy/dist/pypy/tool/build/bin/gentoo_init.d	Mon Jan  8 12:42:51 2007
@@ -1,6 +1,8 @@
 #!/sbin/runscript
 
 CMD=/opt/pypy-dist/pypy/tool/build/bin/server
+PIDFILE=/var/run/build_metaserver.pid
+LOGFILE=/var/log/build_metaserver.log
 
 depend() {
 	use net
@@ -8,7 +10,8 @@
 
 start() {
 	ebegin "Starting PyPy meta server"
-	start-stop-daemon --start --quiet --exec $CMD
+	start-stop-daemon --start --quiet --exec $CMD \
+        --make-pidfile --pidfile $PIDFILE --background >> $LOGFILE
 	eend $?
 }
 



More information about the Pypy-commit mailing list