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

[Cluster-devel] conga/luci/init.d luci



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	kupcevic sourceware org	2006-10-03 18:23:30

Modified files:
	luci/init.d    : luci 

Log message:
	luci: init script: besides printing out url to access luci, log it into log files as well

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/init.d/luci.diff?cvsroot=cluster&r1=1.9&r2=1.10

--- conga/luci/init.d/luci	2006/09/26 00:22:27	1.9
+++ conga/luci/init.d/luci	2006/10/03 18:23:30	1.10
@@ -17,6 +17,9 @@
 # Grab the network config file
 . /etc/sysconfig/network
 
+# grab luci defaults
+. /etc/sysconfig/luci
+
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 export PATH
 
@@ -29,15 +32,14 @@
 LUCI_USER="luci"
 LUCI_GROUP="luci"
 
+LUCI_URL="https://$HOSTNAME:$LUCI_HTTPS_PORT";
+
 HTTPS_PUBKEY="/var/lib/luci/var/certs/https.pem"
 HTTPS_PRIVKEY="/var/lib/luci/var/certs/https.key.pem"
 STUNNEL_D="/usr/sbin/stunnel"
 STUNNEL_PID="/var/lib/luci/var/stunnel/pid"
 STUNNEL_CONF="/var/lib/luci/etc/stunnel.conf"
 
-# grab luci defaults
-. /etc/sysconfig/luci
-
 #
 # Only root wants to run this...
 #
@@ -171,8 +173,10 @@
 		    cat $PIDFILE > $GLOB_PIDFILE
 		    touch $GLOB_LOCKFILE
 		    /usr/bin/logger -t $ID "startup succeeded"
+		    /usr/bin/logger -t $ID "Listening on port $LUCI_HTTPS_PORT; accessible using url $LUCI_URL"
+		    echo; echo
+		    echo "Please, point your web browser to $LUCI_URL to access luci"
 		    echo
-		    echo "Please, point your web browser to https://$HOSTNAME:$LUCI_HTTPS_PORT to access luci"
 		else
 		    echo_failure
 		    /usr/bin/logger -t $ID "startup failed"


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