commit:     6022b0f4d356200dede844a86ce07439a15d46b0
Author:     Henning Schild <henning <AT> hennsch <DOT> de>
AuthorDate: Thu Jul 12 20:18:35 2018 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Jul 15 18:20:17 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6022b0f4

dev-ruby/rubygems: change init script from --chuid to --user

Change start-stop-daemon argument away from a deprecated one, that
commit gets rid of a warning when starting.

Signed-off-by: Henning Schild <henning <AT> hennsch.de>

 dev-ruby/rubygems/files/init.d-gem_server2 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dev-ruby/rubygems/files/init.d-gem_server2 
b/dev-ruby/rubygems/files/init.d-gem_server2
index c7a6b6f1dc0..213d88b0bd6 100644
--- a/dev-ruby/rubygems/files/init.d-gem_server2
+++ b/dev-ruby/rubygems/files/init.d-gem_server2
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 PID=/var/run/gem_server.pid
@@ -10,8 +10,9 @@ depend() {
 
 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}
+       start-stop-daemon --start --user nobody --quiet --background \
+               --make-pidfile --pidfile ${PID} --exec /usr/bin/ruby -- \
+               /usr/bin/gem server ${GEM_SERVER_OPTS}
        eend ${?}
 }
 

Reply via email to