]> git.pld-linux.org Git - packages/xorg-xserver-server.git/commitdiff
Xvfb initscript: use --makepid --fork --pidfile instead of shell hackery
authorElan Ruusamäe <glen@delfi.ee>
Sat, 12 Apr 2014 16:17:17 +0000 (19:17 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 12 Apr 2014 16:17:17 +0000 (19:17 +0300)
xorg-xserver-server-Xvfb.init [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index b67cfe8..e7f6740
@@ -10,8 +10,6 @@
 # config:      /etc/X11/xorg.conf
 # pidfile:     /var/run/Xvfb.pid
 #
-# $Id$
-
 # Source function library
 . /etc/rc.d/init.d/functions
 
@@ -47,9 +45,7 @@ start() {
        fi
 
        msg_starting "Xvfb"
-
-       # Beware the jabberwock!
-       daemon sh -c "\"exec sh -c 'echo \$\$ > /var/run/Xvfb.pid; exec /usr/bin/Xvfb $OPTIONS $DISPLAY_NUMBER' &\""
+       daemon --makepid --fork --pidfile /var/run/Xvfb.pid /usr/bin/Xvfb $OPTIONS $DISPLAY_NUMBER
        RETVAL=$?
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/Xvfb
 }
This page took 0.091135 seconds and 4 git commands to generate.