##// END OF EJS Templates
.hgtags: remove accidental unused double tag of 0.4.0rc1...
.hgtags: remove accidental unused double tag of 0.4.0rc1 Initially, when tagging 0.4.0rc1 I made a mistake locally, fixed it, then stripped the tagging commit, and retagged. However, it seems something went wrong in this procedure and the original commit also is shown in .hgtags. This commit never got pushed, is hidden (obsolete) in my local repository, so remove the corresponding line in .hgtags to avoid any confusion.

File last commit:

r6509:2c3d3009 default
r7529:42383fe2 default
Show More
kallithea-daemon-arch
70 lines | 1.3 KiB | text/plain | TextLexer
/ init.d / kallithea-daemon-arch
Bradley M. Kuhn
Rename init scripts and fix references inside them
r4190 #!/bin/bash
###########################################
#### THIS IS AN ARCH LINUX RC.D SCRIPT ####
###########################################
. /etc/rc.conf
. /etc/rc.d/functions
DAEMON=kallithea
APP_HOMEDIR="/srv"
APP_PATH="$APP_HOMEDIR/$DAEMON"
CONF_NAME="production.ini"
LOG_FILE="/var/log/$DAEMON.log"
PID_FILE="/run/daemons/$DAEMON"
Mads Kiilerich
gearbox: replace paster with something TurboGears2-ish that still works with the Pylons stack...
r6509 APPL=/usr/bin/gearbox
Bradley M. Kuhn
Rename init scripts and fix references inside them
r4190 RUN_AS="*****"
ARGS="serve --daemon \
--user=$RUN_AS \
--group=$RUN_AS \
--pid-file=$PID_FILE \
--log-file=$LOG_FILE \
Mads Kiilerich
gearbox: replace paster with something TurboGears2-ish that still works with the Pylons stack...
r6509 -c $APP_PATH/$CONF_NAME"
Bradley M. Kuhn
Rename init scripts and fix references inside them
r4190
[ -r /etc/conf.d/$DAEMON ] && . /etc/conf.d/$DAEMON
if [[ -r $PID_FILE ]]; then
read -r PID < "$PID_FILE"
if [[ $PID && ! -d /proc/$PID ]]; then
unset PID
rm_daemon $DAEMON
fi
fi
case "$1" in
start)
stat_busy "Starting $DAEMON"
export HOME=$APP_PATH
[ -z "$PID" ] && $APPL $ARGS &>/dev/null
if [ $? = 0 ]; then
add_daemon $DAEMON
stat_done
else
stat_fail
exit 1
fi
;;
stop)
stat_busy "Stopping $DAEMON"
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 [ -n "$PID" ] && kill $PID &>/dev/null
Bradley M. Kuhn
Rename init scripts and fix references inside them
r4190 if [ $? = 0 ]; then
rm_daemon $DAEMON
stat_done
else
stat_fail
exit 1
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
stat_busy "Checking $name status";
ck_status $name
;;
*)
echo "usage: $0 {start|stop|restart|status}"
Mads Kiilerich
scripts: apply whitespace cleanup to more files - opt out instead of opt in
r6333 esac