Skip to content

Commit

Permalink
Show module name
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Sep 1, 2023
1 parent cf50e1c commit 954816b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions jpos/src/dist/bin/start
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

cd `dirname $0`
echo Starting Q2
dir_path=$(dirname "$0")
cd "$dir_path/.." || exit 1
echo "Starting Q2 $(basename "$PWD")"
cd "$dir_path" || exit 1

nohup ./q2 "$@" > /dev/null 2>&1 &
3 changes: 2 additions & 1 deletion jpos/src/dist/bin/stop
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/sh

echo Stopping Q2

cd $(dirname $0)/.. || exit 1
echo "Stopping Q2 $(basename "$PWD")"
if [ -f jpos.pid ] && ps -p $(cat jpos.pid) > /dev/null 2>&1; then
kill $(cat jpos.pid)
else
Expand Down

0 comments on commit 954816b

Please sign in to comment.