comparison init.d/kallithea-daemon-redhat @ 4212:24c0d584ba86 kallithea-2.2.5-rebrand

General renaming to Kallithea
author Bradley M. Kuhn <bkuhn@sfconservancy.org>
date Wed, 02 Jul 2014 19:06:01 -0400
parents 99ad9d0af1a3
children e285bb7abb28
comparison
equal deleted inserted replaced
4211:1948ede028ef 4212:24c0d584ba86
3 #### THIS IS A REDHAT INIT.D SCRIPT #### 3 #### THIS IS A REDHAT INIT.D SCRIPT ####
4 ######################################## 4 ########################################
5 5
6 ################################################## 6 ##################################################
7 # 7 #
8 # RhodeCode server startup script 8 # Kallithea server startup script
9 # Recommended default-startup: 2 3 4 5 9 # Recommended default-startup: 2 3 4 5
10 # Recommended default-stop: 0 1 6 10 # Recommended default-stop: 0 1 6
11 # 11 #
12 ################################################## 12 ##################################################
13 13
24 # same goes for the log file 24 # same goes for the log file
25 PID_PATH="/var/run/kallithea/pid" 25 PID_PATH="/var/run/kallithea/pid"
26 LOG_PATH="/var/log/kallithea/kallithea.log" 26 LOG_PATH="/var/log/kallithea/kallithea.log"
27 27
28 # replace this with the path to the virtual environment you 28 # replace this with the path to the virtual environment you
29 # made for RhodeCode 29 # made for Kallithea
30 PYTHON_PATH="/opt/python_virtualenvironments/kallithea-venv" 30 PYTHON_PATH="/opt/python_virtualenvironments/kallithea-venv"
31 31
32 RUN_AS="kallithea" 32 RUN_AS="kallithea"
33 33
34 DAEMON="$PYTHON_PATH/bin/paster" 34 DAEMON="$PYTHON_PATH/bin/paster"
111 ;; 111 ;;
112 status) 112 status)
113 status_kallithea 113 status_kallithea
114 RETVAL=$? 114 RETVAL=$?
115 if [ ! $RETVAL -eq 0 ]; then 115 if [ ! $RETVAL -eq 0 ]; then
116 echo "RhodeCode server is running..." 116 echo "Kallithea server is running..."
117 else 117 else
118 echo "RhodeCode server is stopped." 118 echo "Kallithea server is stopped."
119 fi 119 fi
120 ;; 120 ;;
121 restart) 121 restart)
122 echo -n $"Restarting $DESC: " 122 echo -n $"Restarting $DESC: "
123 restart_kallithea 123 restart_kallithea