maybe chmod 0644 './conf.d/device-mapper'
maybe chmod 0644 './conf.d/dmesg'
maybe chmod 0644 './conf.d/fsck'
+maybe chmod 0644 './conf.d/gem_server'
maybe chmod 0644 './conf.d/git-daemon'
maybe chmod 0644 './conf.d/gpm'
maybe chmod 0644 './conf.d/hostname'
maybe chmod 0644 './env.d/05binutils'
maybe chmod 0644 './env.d/05gcc-x86_64-pc-linux-gnu'
maybe chmod 0644 './env.d/09sandbox'
+maybe chmod 0644 './env.d/10rubygems'
maybe chmod 0644 './env.d/20ant'
maybe chmod 0644 './env.d/20java-config'
maybe chmod 0644 './env.d/20php5.3'
maybe chmod 0755 './init.d/dmeventd'
maybe chmod 0755 './init.d/fancontrol'
maybe chmod 0755 './init.d/fsck'
+maybe chmod 0755 './init.d/gem_server'
maybe chmod 0755 './init.d/git-daemon'
maybe chmod 0755 './init.d/gpm'
maybe chmod 0755 './init.d/hostname'
--- /dev/null
+#!/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 ${?}
+}