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:
authorVictor Kulichenko <onclev@gmail.com>2013-10-30 13:56:32 +0400
committerVictor Kulichenko <onclev@gmail.com>2013-10-30 13:56:32 +0400
commit39593ff101bd0dac3d28023c307e6500d6019cd7 (patch)
tree537bfc3d4ecb41d044fd1738ce376585593ab2ca /init.d
parent7a2e1f9f7fb1f4c87503d3a88ef1abdb1b24ffc4 (diff)
Starting daemon env python2 now
Diffstat (limited to 'init.d')
-rw-r--r--init.d/vk4xmpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/init.d/vk4xmpp b/init.d/vk4xmpp
index b8c0e1e..eea45e4 100644
--- a/init.d/vk4xmpp
+++ b/init.d/vk4xmpp
@@ -24,17 +24,17 @@ PIDDIR="$APPDIR"
PIDFILE=$PIDDIR/pidFile.txt
CONFIG_FILE="$APPDIR/Config.txt"
LOGFILE="$APPDIR/gateway.log"
-USER=vk4xmppt
-GROUP=vk4xmppt
+USER=vk4xmpp
+GROUP=vk4xmpp
-DAEMON=/usr/bin/python
+DAEMON="/usr/bin/env python2"
OPTIONS="$APPDIR/gateway.py"
-test -f $DAEMON || exit 0
+test -f "$(which python2)" || exit 0
-if test ! -e $PIDDIR; then
- mkdir $PIDDIR
- chown $USER:$GROUP $PIDDIR
+if test ! -e "$PIDDIR"; then
+ mkdir "$PIDDIR"
+ chown $USER:$GROUP "$PIDDIR"
fi
case "$1" in