dev-ruby/rubygems: change init script from --chuid to --user
authorHenning Schild <henning@hennsch.de>
Thu, 12 Jul 2018 20:18:35 +0000 (22:18 +0200)
committerHans de Graaff <graaff@gentoo.org>
Sun, 15 Jul 2018 18:20:17 +0000 (20:20 +0200)
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@hennsch.de>
dev-ruby/rubygems/files/init.d-gem_server2

index c7a6b6f1dc0bf9ad45364386c9dfd20ae6265d15..213d88b0bd6e6272796f78ca971e35d6181cf10f 100644 (file)
@@ -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 ${?}
 }