add all my local ebuilds
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@602 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
22
dev-ruby/rubygems/files/init.d-gem_server2
Normal file
22
dev-ruby/rubygems/files/init.d-gem_server2
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
PID=/var/run/gem_server.pid
|
||||
|
||||
depend() {
|
||||
need localmount net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting gem_server"
|
||||
start-stop-daemon --start --chuid nobody --quiet --background --make-pidfile \
|
||||
--pidfile ${PID} --exec /usr/bin/ruby -- /usr/bin/gem server ${GEM_SERVER_OPTS}
|
||||
eend ${?}
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping gem_server"
|
||||
start-stop-daemon --stop --pidfile ${PID}
|
||||
eend ${?}
|
||||
}
|
||||
Reference in New Issue
Block a user