[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

X Strike Force X.Org X11 SVN commit: r2155 - trunk/debian/xorg/debian



Author: dnusinow
Date: 2006-05-16 22:06:35 -0400 (Tue, 16 May 2006)
New Revision: 2155

Modified:
   trunk/debian/xorg/debian/changelog
   trunk/debian/xorg/debian/x11-common.init
Log:
  and Frank Mehnert for the reports and the patches.
* Implement a status call in x11-common's init script for LSB compliance

Modified: trunk/debian/xorg/debian/changelog
===================================================================
--- trunk/debian/xorg/debian/changelog	2006-05-17 01:31:33 UTC (rev 2154)
+++ trunk/debian/xorg/debian/changelog	2006-05-17 02:06:35 UTC (rev 2155)
@@ -10,10 +10,11 @@
     fix the problem. This is an ugly workaround and I welcome a better
     solution if someone can find it. (closes: #363169)
   * Allow ICE socket to be set up in non-verbose mode. Thanks Gilmar Santos Jr
-    and Frank Mehnert for the reports and the patches. 
+    and Frank Mehnert for the reports and the patches.
     (closes: #367556, #363427)
+  * Implement a status call in x11-common's init script for LSB compliance
 
- -- David Nusinow <dnusinow@debian.org>  Tue, 16 May 2006 21:28:06 -0400
+ -- David Nusinow <dnusinow@debian.org>  Tue, 16 May 2006 22:06:57 -0400
 
 xorg (1:7.0.18) unstable; urgency=low
 

Modified: trunk/debian/xorg/debian/x11-common.init
===================================================================
--- trunk/debian/xorg/debian/x11-common.init	2006-05-17 01:31:33 UTC (rev 2154)
+++ trunk/debian/xorg/debian/x11-common.init	2006-05-17 02:06:35 UTC (rev 2155)
@@ -45,6 +45,14 @@
   [ "$VERBOSE" != no ] && log_end_msg 0 || true
 }
 
+do_status () {
+    if [ -d $ICE_DIR ] && [ -d $SOCKET_DIR ]; then
+      return 0
+    else
+      return 4
+    fi
+}
+
 case "$1" in
   start)
     set_up_socket_dir
@@ -59,8 +67,11 @@
    :
   ;;
 
+  status)
+    do_status
+  ;;
   *)
-    log_success_msg "Usage: /etc/init.d/x11-common {start|stop|restart|reload|force-reload}"
+    log_success_msg "Usage: /etc/init.d/x11-common {start|stop|status|restart|reload|force-reload}"
     exit 1
     ;;
 esac



Reply to: