Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authormrDoctorWho <mrdoctorwho@gmail.com>2014-04-06 18:34:50 +0400
committermrDoctorWho <mrdoctorwho@gmail.com>2014-04-06 18:34:50 +0400
commit4ab7b381c4107136fddb831c61590dcf1fba566f (patch)
tree69f37300441e4b7a366fb1318a24b7387b538866 /init.d
parent7b7fd9a76622bc62605ba0ef98e0f803fd90fbb0 (diff)
There are a lot of changes. Completely new watcher added to watch users who wasn't added to poll.
Code cleanup, new features (xhtml-im available to receive images) Fixes in user deletion Added debian scripts for dpkg. And more.
Diffstat (limited to 'init.d')
-rwxr-xr-x[-rw-r--r--]init.d/vk4xmpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/init.d/vk4xmpp b/init.d/vk4xmpp
index eea45e4..b87730d 100644..100755
--- a/init.d/vk4xmpp
+++ b/init.d/vk4xmpp
@@ -13,6 +13,10 @@
# that supports the Connect component mechanism.
### END INIT INFO
+
+# /etc/init.d/vk4xmpp: start and stop VK4XMPP Transport service
+
+
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
. /lib/lsb/init-functions
@@ -32,22 +36,17 @@ OPTIONS="$APPDIR/gateway.py"
test -f "$(which python2)" || exit 0
-if test ! -e "$PIDDIR"; then
- mkdir "$PIDDIR"
- chown $USER:$GROUP "$PIDDIR"
-fi
case "$1" in
start)
log_daemon_msg "Starting $DESC" "$NAME"
- #sudo -b -u pyicqt /usr/bin/python /usr/share/vk4xmpp/gateway.py > /usr/share/vk4xmpp/gateway.log 2>&1
sudo -b -u $USER $DAEMON $APPDIR/gateway.py > $LOGFILE 2>&1
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
#eval `kill $(cat /usr/share/vk4xmpp/pidFile.txt)`
- eval `kill $(cat $PIDFILE)`
+ eval `kill -15 $(cat $PIDFILE)`
log_end_msg $?
;;
status)
@@ -68,7 +67,8 @@ status)
fi
;;
reload|force-reload)
- #No-Op
+ eval `kill -9 $(cat $PIDFILE)`
+ $0 start
;;
restart)
$0 stop