1 |
pacho 13/05/26 18:46:27 |
2 |
|
3 |
Added: vgl.initd-r2 |
4 |
Log: |
5 |
Fix running with gdm-3 (#469928, thanks a lot to Vadim A. Misbakh-Soloviov (mva) for his help), drop old. |
6 |
|
7 |
(Portage version: 2.1.12.1/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 x11-misc/virtualgl/files/vgl.initd-r2 |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/virtualgl/files/vgl.initd-r2?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/virtualgl/files/vgl.initd-r2?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: vgl.initd-r2 |
16 |
=================================================================== |
17 |
#!/sbin/runscript |
18 |
# Copyright 1999-2013 Gentoo Foundation |
19 |
# Distributed under the terms of the GNU General Public License v2 |
20 |
# $Header: /var/cvsroot/gentoo-x86/x11-misc/virtualgl/files/vgl.initd-r2,v 1.1 2013/05/26 18:46:27 pacho Exp $ |
21 |
|
22 |
# TODO: description="*" and other OpenRC 0.9+ candies |
23 |
|
24 |
depend() { |
25 |
need xdm |
26 |
after sshd |
27 |
} |
28 |
|
29 |
start() { |
30 |
ebegin "Starting VirtualGL" |
31 |
truncate --size=0 /var/lib/VirtualGL/vgl_xauth_key |
32 |
|
33 |
# Check if XAUTHORITY was set successfully, if not wait a bit and let X to start |
34 |
[ -z "$XAUTHORITY" ] && sleep 3 && set_xauth |
35 |
[ -e "$XAUTHORITY" ] || sleep 3 |
36 |
xauth -f /var/lib/VirtualGL/vgl_xauth_key add $DISPLAY . `xauth -f $XAUTHORITY list | awk '{print $3;exit}'` && \ |
37 |
chmod 644 /var/lib/VirtualGL/vgl_xauth_key |
38 |
eend $? |
39 |
} |
40 |
|
41 |
stop() { |
42 |
ebegin "Stopping VirtualGL" |
43 |
[ -f /var/lib/VirtualGL/vgl_xauth_key ] && \ |
44 |
rm /var/lib/VirtualGL/vgl_xauth_key |
45 |
eend $? |
46 |
} |