Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 765208 Details for
Bug 746227
net-misc/tigervnc-1.11.0-r2[server] different calling conventions for vncserver startup
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
init
tigervnc.initd.1.12 (text/plain), 1.83 KB, created by
Norman Back
on 2022-02-15 19:39:25 UTC
(
hide
)
Description:
init
Filename:
MIME Type:
Creator:
Norman Back
Created:
2022-02-15 19:39:25 UTC
Size:
1.83 KB
patch
obsolete
>#!/sbin/openrc-run ># Copyright 1999-2014 Gentoo Foundation ># Distributed under the terms of the GNU General Public License, v2 or later > >depend() { > need net >} > >checkconfig() { > if [ -n "${DISPLAYS}" ]; then > if [ $1 = "start" ]; then > local user display xsession > for user in $DISPLAYS; do > display=${user##*:} > display=${display%%,*} > xsession=${user##*,} > user=${user%%:*} > if eval [ ! -f "~${user}/.vnc/passwd" ]; then > eerror "There are no passwords defined for user ${user}." > return 1 > elif [ -e "/tmp/.X11-unix/X${display}" ]; then > eerror "Display :${display} appears to be already in use because of /tmp/.X11-unix/X${display}" > eerror "Remove this file if there is no X server $HOSTNAME:${user##*:}" > return 1 > elif [ -e "/tmp/.X${user}-lock" ]; then > eerror "Display :${user} appears to be already in use because of /tmp/.X${user}-lock" > eerror "Remove this file if there is no X server $HOSTNAME:${user}" > return 1 > fi > if [ -n "${xsession}" ] ; then > if eval [ ! -x "${xsession}" ]; then > eerror "Xsession file ${xsession} does not exist or is not executable" > return 1 > fi > fi > done > fi > return 0 > else > eerror 'Please define $DISPLAYS in /etc/conf.d/tigervnc' > return 1 > fi >} > >start() { > checkconfig start || return 1 > ebegin "Starting TigerVNC server" > local user display xsession > for user in $DISPLAYS; do > display=${user##*:} > display=${display%%,*} > xsession=${user##*,} > user=${user%%:*} > > vncsession ${user} :${display} ${xsession} > done > eend $? >} > >stop() { > checkconfig stop || return 2 > ebegin "Stopping TigerVNC server" > local user display > for user in $DISPLAYS; do > display=${user##*:} > display=${display%%,*} > start-stop-daemon --stop --pidfile /var/run/vncsession-:${display}.pid > done > eend $? >} > >restart() { > svc_stop > svc_start >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 746227
:
663613
|
676600
|
676603
|
765203
|
765204
|
765205
|
765206
|
765207
| 765208