From: | "Hans de Graaff (graaff)" <graaff@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ruby/rubygems/files: init.d-gem_server2 |
Date: | Sun, 29 Jun 2008 21:07:00 |
Message-Id: | E1KD46o-0006Il-Vh@stork.gentoo.org |
1 | graaff 08/06/29 21:06:54 |
2 | |
3 | Added: init.d-gem_server2 |
4 | Log: |
5 | Fix problem with init.d file as reported in #229875 |
6 | (Portage version: 2.1.4.4) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-ruby/rubygems/files/init.d-gem_server2 |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/files/init.d-gem_server2?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/files/init.d-gem_server2?rev=1.1&content-type=text/plain |
13 | |
14 | Index: init.d-gem_server2 |
15 | =================================================================== |
16 | #!/sbin/runscript |
17 | # Copyright 1999-2008 Gentoo Foundation |
18 | # Distributed under the terms of the GNU General Public License v2 |
19 | |
20 | PID=/var/run/gem_server.pid |
21 | |
22 | depend() { |
23 | need localmount net |
24 | } |
25 | |
26 | start() { |
27 | ebegin "Starting gem_server" |
28 | start-stop-daemon --start --chuid nobody --quiet --background --make-pidfile \ |
29 | --pidfile ${PID} --exec /usr/bin/ruby -- /usr/bin/gem server ${GEM_SERVER_OPTS} |
30 | eend ${?} |
31 | } |
32 | |
33 | stop() { |
34 | ebegin "Stopping gem_server" |
35 | start-stop-daemon --stop --pidfile ${PID} |
36 | eend ${?} |
37 | } |
38 | |
39 | |
40 | |
41 | -- |
42 | gentoo-commits@l.g.o mailing list |