Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

Python2 #30

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion start
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
#!/bin/bash
nohup /usr/bin/python -u server.py &>> /var/log/electrum.log &
which python2 &> /dev/null
RET=$?
[ $RET -eq 0 ] && PYTHON=`which python2`
[ $RET -ne 0 ] && PYTHON=`which python`
nohup $PYTHON -u server.py &>> /var/log/electrum.log &
6 changes: 5 additions & 1 deletion stop
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
#!/bin/bash
/usr/bin/python server.py stop
which python2 &> /dev/null
RET=$?
[ $RET -eq 0 ] && PYTHON=`which python2`
[ $RET -ne 0 ] && PYTHON=`which python`
$PYTHON server.py stop