diff options
author | friendica <info@friendica.com> | 2014-01-27 18:37:06 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-27 18:37:06 -0800 |
commit | eb21bbdd550e4d1efc9a4c6e506eb64ba2cf9842 (patch) | |
tree | 887fbfc6ba78c4c2e12d0361003b33c6e76926ac /library/ajaxchat/chat/socket/server | |
parent | 3100b5d93e9f440a17b99d2856ee022b29d73f80 (diff) | |
download | volse-hubzilla-eb21bbdd550e4d1efc9a4c6e506eb64ba2cf9842.tar.gz volse-hubzilla-eb21bbdd550e4d1efc9a4c6e506eb64ba2cf9842.tar.bz2 volse-hubzilla-eb21bbdd550e4d1efc9a4c6e506eb64ba2cf9842.zip |
Ajaxchat package has way too many incompatible assumptions - after a lot of review, we can't work with it without re-writing huge chunks. Think I'll just start fresh. Ajax chat isn't that hard and we can do stuff with it that you just can't do with other chat clients because - well we've got zot.
Diffstat (limited to 'library/ajaxchat/chat/socket/server')
-rw-r--r-- | library/ajaxchat/chat/socket/server | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/library/ajaxchat/chat/socket/server b/library/ajaxchat/chat/socket/server deleted file mode 100644 index 806b5ef74..000000000 --- a/library/ajaxchat/chat/socket/server +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/bash - -# Simple bash script to start and stop a service -# Works without access to /var/run/ or ps and pidof commands -# -# Date:: Wed, 09 Jan 2008 -# Author:: Sebastian Tschan, https://blueimp.net -# License:: GNU Affero General Public License - - -SERVICE_TITLE=Service -SERVICE_BASENAME=${0##*/} -SERVICE_DIR=${0%/$SERVICE_BASENAME} -SERVICE_COMMAND=$SERVICE_DIR/$SERVICE_BASENAME.rb -SERVICE_CONFIG=$SERVICE_DIR/$SERVICE_BASENAME.conf -SERVICE_LOG=$SERVICE_DIR/$SERVICE_BASENAME.log -SERVICE_PIDFILE=$SERVICE_DIR/$SERVICE_BASENAME.pid - - -function start -{ - if [ -f $SERVICE_PIDFILE ] - then - echo "PID file $SERVICE_PIDFILE found - $SERVICE_TITLE already running?" - else - $SERVICE_COMMAND $SERVICE_CONFIG >> $SERVICE_LOG & echo "Started $SERVICE_TITLE..." - PID=$! - echo $PID > $SERVICE_PIDFILE - fi - exit 0 -} - -function stop -{ - if [ -f $SERVICE_PIDFILE ] - then - PID=`cat $SERVICE_PIDFILE` - kill -TERM $PID - rm -f $SERVICE_PIDFILE - echo "Stopped $SERVICE_TITLE." - else - echo "PID file $SERVICE_PIDFILE not found - $SERVICE_TITLE not running?" - fi - exit 0 -} - -function main -{ - for arg in $@ - do - if [ $arg == "start" ] - then - start - elif [ $arg == "stop" ] - then - stop - else - echo "Unknown argument:" $arg - echo "Usage: $0 [start|stop]" - exit 0 - fi - done - - echo "Missing argument." - echo "Usage: $0 [start|stop]" - exit 0 -} - - -# Script execution: -main $@
\ No newline at end of file |