From: Frank Brehm Date: Tue, 16 May 2017 14:31:18 +0000 (+0200) Subject: committing changes in /etc after emerge run X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=1ecd9eac1a23a36f422e97680853a7c713269db0;p=config%2Fbruni%2Fetc.git committing changes in /etc after emerge run Package changes: +dev-ruby/rubygems-2.5.2 --- diff --git a/conf.d/gem_server b/conf.d/gem_server new file mode 100644 index 00000000..b9cfa3f5 --- /dev/null +++ b/conf.d/gem_server @@ -0,0 +1,5 @@ +# /etc/conf.d/gem_server + +# See `gem_server --help` for more + +GEM_SERVER_OPTS="" diff --git a/init.d/gem_server b/init.d/gem_server new file mode 100755 index 00000000..c7a6b6f1 --- /dev/null +++ b/init.d/gem_server @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# 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 ${?} +}