Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 323956 Details for
Bug 434382
net-misc/tigervnc - init.d script multi-user improvement
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for init script for customized users options and init script operations
tigervnc.initd-customized_users_and_operations.patch (text/plain), 1.05 KB, created by
Rafal Lalik
on 2012-09-15 22:29:27 UTC
(
hide
)
Description:
Patch for init script for customized users options and init script operations
Filename:
MIME Type:
Creator:
Rafal Lalik
Created:
2012-09-15 22:29:27 UTC
Size:
1.05 KB
patch
obsolete
>--- tigervnc.initd 2010-03-06 17:30:03.000000000 +0100 >+++ tigervnc.initd 2012-09-15 23:40:09.679875405 +0200 >@@ -37,7 +37,20 @@ > checkconfig start || return 1 > ebegin "Starting TigerVNC server" > for user in $DISPLAYS; do >- su -s /bin/sh ${user%%:*} -c "cd ~${user%%:*} && vncserver :${user##*:} $VNC_OPTS" &>/dev/null >+ [[ -n $AFFECT_ONLY ]] && [[ ! $AFFECT_ONLY == *${user}* ]] && continue; >+ >+ usrname=${user%%:*} >+ usropts=VNC_OPTS_${usrname} >+ usrdisp=${user##*:} >+ usrdispopts=$usropts"["$usrdisp"]" >+ if [ ! -z ${!usrdispopts} ] ; then >+ vnc_opts=${!usrdispopts} >+ elif [ ! -z ${!usropts} ] ; then >+ vnc_opts=${!usropts} >+ else >+ vnc_opts=$VNC_OPTS >+ fi >+ su -s /bin/sh ${user%%:*} -c "cd ~${user%%:*} && vncserver :${user##*:} $vnc_opts" &>/dev/null > done > eend $? > } >@@ -46,6 +59,7 @@ > checkconfig stop || return 2 > ebegin "Stopping TigerVNC server" > for user in $DISPLAYS; do >+ [[ -n $AFFECT_ONLY ]] && [[ ! $AFFECT_ONLY == *${user}* ]] && continue; > su -s /bin/sh ${user%%:*} -c "vncserver -kill :${user##*:}" &>/dev/null > done > eend $?
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 434382
:
323242
|
323952
|
323954
| 323956