1 |
commit: 6022b0f4d356200dede844a86ce07439a15d46b0 |
2 |
Author: Henning Schild <henning <AT> hennsch <DOT> de> |
3 |
AuthorDate: Thu Jul 12 20:18:35 2018 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 15 18:20:17 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6022b0f4 |
7 |
|
8 |
dev-ruby/rubygems: change init script from --chuid to --user |
9 |
|
10 |
Change start-stop-daemon argument away from a deprecated one, that |
11 |
commit gets rid of a warning when starting. |
12 |
|
13 |
Signed-off-by: Henning Schild <henning <AT> hennsch.de> |
14 |
|
15 |
dev-ruby/rubygems/files/init.d-gem_server2 | 7 ++++--- |
16 |
1 file changed, 4 insertions(+), 3 deletions(-) |
17 |
|
18 |
diff --git a/dev-ruby/rubygems/files/init.d-gem_server2 b/dev-ruby/rubygems/files/init.d-gem_server2 |
19 |
index c7a6b6f1dc0..213d88b0bd6 100644 |
20 |
--- a/dev-ruby/rubygems/files/init.d-gem_server2 |
21 |
+++ b/dev-ruby/rubygems/files/init.d-gem_server2 |
22 |
@@ -1,5 +1,5 @@ |
23 |
#!/sbin/openrc-run |
24 |
-# Copyright 1999-2008 Gentoo Foundation |
25 |
+# Copyright 1999-2018 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
PID=/var/run/gem_server.pid |
29 |
@@ -10,8 +10,9 @@ depend() { |
30 |
|
31 |
start() { |
32 |
ebegin "Starting gem_server" |
33 |
- start-stop-daemon --start --chuid nobody --quiet --background --make-pidfile \ |
34 |
- --pidfile ${PID} --exec /usr/bin/ruby -- /usr/bin/gem server ${GEM_SERVER_OPTS} |
35 |
+ start-stop-daemon --start --user nobody --quiet --background \ |
36 |
+ --make-pidfile --pidfile ${PID} --exec /usr/bin/ruby -- \ |
37 |
+ /usr/bin/gem server ${GEM_SERVER_OPTS} |
38 |
eend ${?} |
39 |
} |