FreeBSD Bugzilla – Attachment 112034 Details for
Bug 153392
Update rc.d script for x11/slim
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
slim_rc.patch
slim_rc.patch (text/x-patch; charset=US-ASCII), 1.19 KB, created by
Henry Hu
on 2011-01-02 06:48:41 UTC
(
hide
)
Description:
slim_rc.patch
Filename:
MIME Type:
Creator:
Henry Hu
Created:
2011-01-02 06:48:41 UTC
Size:
1.19 KB
patch
obsolete
>Index: slim.sh.in >=================================================================== >RCS file: /home/pcvs/ports/x11/slim/files/slim.sh.in,v >retrieving revision 1.4 >diff -u -r1.4 slim.sh.in >--- slim.sh.in 27 Mar 2010 00:15:23 -0000 1.4 >+++ slim.sh.in 24 Dec 2010 03:17:25 -0000 >@@ -2,6 +2,7 @@ > > # PROVIDE: slim > # REQUIRE: LOGIN >+# KEYWORD: shutdown > > # > # Add the following lines to /etc/rc.conf to enable slim: >@@ -11,13 +12,17 @@ > # Alternatively, edit /etc/ttys and change the line below > # ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm off secure > # to this: >-# ttyv8 "/usr/local/bin/slim" xterm on secure >+# ttyv8 "%%PREFIX%%/bin/slim" xterm on secure > > . /etc/rc.subr > > name="slim" > rcvar=`set_rcvar` > >+start_precmd=${name}_rmfile >+stop_precmd=${name}_prestop >+stop_postcmd=${name}_rmfile >+ > load_rc_config $name > > : ${slim_enable="NO"} >@@ -26,4 +31,23 @@ > command_args="-d" > pidfile=/var/run/slim.pid > >+slim_rmfile () >+{ >+ local file >+ >+ for file in $pidfile /var/run/slim.auth; do >+ [ -e "$file" ] && unlink $file >+ done >+ >+ return 0 >+} >+ >+slim_prestop () >+{ >+ local xpid >+ >+ xpid=`ps -axww | grep '/bin/[X] .* -auth /var/run/slim.auth'` >+ kill ${xpid%% *} >+} >+ > run_rc_command "$1"
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 153392
:
112033
| 112034