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

[or-cvs] Checkpoint work towards making tor.spec work with current t...



Update of /home/or/cvsroot/contrib
In directory moria.mit.edu:/tmp/cvs-serv2918/contrib

Modified Files:
	.cvsignore tor.sh.in 
Added Files:
	tor.spec 
Removed Files:
	tor.spec.in 
Log Message:
Checkpoint work towards making tor.spec work with current tor and conform (more or less) to fedora.us packaging guidelines

Index: .cvsignore
===================================================================
RCS file: /home/or/cvsroot/contrib/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- .cvsignore	9 Apr 2004 13:14:52 -0000	1.2
+++ .cvsignore	6 Jun 2004 23:20:28 -0000	1.3
@@ -1,5 +1,4 @@
 Makefile
 Makefile.in
 tor.sh
-tor.spec
 torify

Index: tor.sh.in
===================================================================
RCS file: /home/or/cvsroot/contrib/tor.sh.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- tor.sh.in	27 Feb 2004 00:24:08 -0000	1.3
+++ tor.sh.in	6 Jun 2004 23:20:28 -0000	1.4
@@ -2,8 +2,8 @@
 #
 #tor    The Onion Router
 #
-#chkconfig:2345 90 10
-#description: Onion Router
+# chkconfig: 2345 90 10
+# description: Onion Router
 
 TORUSER=
 TORGROUP=
@@ -61,6 +61,22 @@
     fi
     ;;
 
+    reload)
+    if [ -f $TORPID ]; then
+        echo -n "Sending HUP to tor..."
+        kill -HUP `cat $TORPID`
+        RETVAL=$?
+        if [ $RETVAL -eq 0 ]; then
+            echo " ok"
+        else
+            echo " ERROR!"
+        fi
+    else
+        echo "Unable to kill tor: $TORPID does not exist"
+        RETVAL=1
+    fi
+    ;;
+
     restart)
     $0 stop
     if [ -f $TORPID ]; then
@@ -69,6 +85,7 @@
     $0 start
     ;;
 
+
     status)
     PID=`cat $TORPID 2>/dev/null`
     if [ "$PID" != "" ]; then


--- tor.spec.in DELETED ---