[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] Move the cumulus init.d script to the init.d directory.
commit 0cfc785d09b8d64009fdecce69c583ecb7cdf410
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Mon Sep 5 02:02:12 2011 -0400
Move the cumulus init.d script to the init.d directory.
---
README | 2 +-
cumulus | 60 --------------------------------------------------------
init.d/cumulus | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 61 insertions(+), 61 deletions(-)
diff --git a/README b/README
index c0c8f6f..c5ab4cf 100644
--- a/README
+++ b/README
@@ -118,7 +118,7 @@ Follow these steps to install the Cumulus server. You need to open port
# useradd -d /dev/null -s /bin/false cumulus
# mkdir /var/cumulus
# chown -R cumulus.cumulus /var/cumulus
- # cp flashproxy/cumulus /etc/init.d/cumulus
+ # cp flashproxy/init.d/cumulus /etc/init.d/cumulus
# chkconfig --add cumulus
# service cumulus start
diff --git a/cumulus b/cumulus
deleted file mode 100755
index b1c428d..0000000
--- a/cumulus
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-#
-# cumulus This shell script takes care of starting and stopping
-# the Cumulus server.
-#
-# chkconfig: 2345 90 10
-# description: Cumulus RTMFP server.
-# processname: CumulusService
-# pidfile: /var/cumulus/cumulus.pid
-
-# Installation instructions:
-# cp cumulus /etc/init.d/cumulus
-# chkconfig --add cumulus
-# service cumulus start
-
-# Source function library.
-. /etc/rc.d/init.d/functions
-
-BINDIR=/usr/local/bin
-VARDIR=/var/cumulus
-CUMULUS=$BINDIR/CumulusService
-PIDFILE=$VARDIR/cumulus.pid
-USER=cumulus
-
-# See how we were called.
-case "$1" in
- start)
- [ -x $CUMULUS ] || exit 1
- echo -n $"Starting Cumulus server: "
- cd $VARDIR && daemon --user cumulus --pidfile $PIDFILE $CUMULUS --daemon --pidfile=$PIDFILE
- RETVAL=$?
- echo
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cumulus
- ;;
- stop)
- # Stop daemon.
- echo -n $"Shutting down Cumulus server: "
- killproc CumulusService
- RETVAL=$?
- echo
- [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/cumulus
- ;;
- status)
- status cumulus
- RETVAL=$?
- ;;
- restart|reload)
- $0 stop
- $0 start
- ;;
- condrestart)
- [ -f /var/lock/subsys/cumulus ] && restart || :
- ;;
- *)
- echo $"Usage: $0 {start|stop|status|restart}"
- RETVAL=3
- ;;
-esac
-
-exit $RETVAL
diff --git a/init.d/cumulus b/init.d/cumulus
new file mode 100755
index 0000000..ba4f4d8
--- /dev/null
+++ b/init.d/cumulus
@@ -0,0 +1,60 @@
+#!/bin/sh
+#
+# cumulus This shell script takes care of starting and stopping
+# the Cumulus server.
+#
+# chkconfig: 2345 90 10
+# description: Cumulus RTMFP server.
+# processname: CumulusService
+# pidfile: /var/cumulus/cumulus.pid
+
+# Installation instructions:
+# cp init.d/cumulus /etc/init.d/cumulus
+# chkconfig --add cumulus
+# service cumulus start
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+BINDIR=/usr/local/bin
+VARDIR=/var/cumulus
+CUMULUS=$BINDIR/CumulusService
+PIDFILE=$VARDIR/cumulus.pid
+USER=cumulus
+
+# See how we were called.
+case "$1" in
+ start)
+ [ -x $CUMULUS ] || exit 1
+ echo -n $"Starting Cumulus server: "
+ cd $VARDIR && daemon --user cumulus --pidfile $PIDFILE $CUMULUS --daemon --pidfile=$PIDFILE
+ RETVAL=$?
+ echo
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cumulus
+ ;;
+ stop)
+ # Stop daemon.
+ echo -n $"Shutting down Cumulus server: "
+ killproc CumulusService
+ RETVAL=$?
+ echo
+ [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/cumulus
+ ;;
+ status)
+ status cumulus
+ RETVAL=$?
+ ;;
+ restart|reload)
+ $0 stop
+ $0 start
+ ;;
+ condrestart)
+ [ -f /var/lock/subsys/cumulus ] && restart || :
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|status|restart}"
+ RETVAL=3
+ ;;
+esac
+
+exit $RETVAL
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits