Skip to content

Commit

Permalink
Fixes loklak#1560 : Running start.sh twice does not kill service now
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin08 committed Dec 18, 2017
1 parent bd66699 commit 7ae6509
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/.preload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mkdir -p data/settings
#to not allow process to overwrite the already running one.
if [ -f $PIDFILE ]; then
PID=$(cat $PIDFILE 2>/dev/null)
if kill $PID > /dev/null 2>&1; then
if [ -n $PID ]; then
echo "Server is already running, please stop it and then start"
exit 1
else
Expand Down
1 change: 1 addition & 0 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ <h2>Open Source</h2>
<a href="https://github.com/loklak/loklak_server"> Code </a>
</div>
<div class="right links">
<a href="http://loklak.org/privacy"> Privacy </a>
<a href="http://loklak.org/terms"> Terms </a>
<a href="http://loklak.org/contact"> Contact </a>
</div>
Expand Down

0 comments on commit 7ae6509

Please sign in to comment.