Skip to content

Commit

Permalink
More logs
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 1, 2024
1 parent f40ca33 commit c434400
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/remote_server_launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ if [ "x$1" == "xstart" ]; then
echo "Server started with php -S $remoteserverlistenip:$remoteserverlistenport -t remote_server $abc"

echo "Logs of server will be in /var/log/remote_server.log"
echo "Server for deployment agent started - $now" >> /var/log/remote_server.log
else
echo Server is already running with PID $pid
fi
echo
fi

if [ "x$1" == "xstop" ]; then
Expand All @@ -85,7 +87,9 @@ if [ "x$1" == "xstop" ]; then
else
echo Launch kill to stop server with PID $pid
kill $pid
echo "Server for deployment agent stopped - $now" >> /var/log/remote_server.log
fi
echo
fi

if [ "x$1" == "xstatus" ]; then
Expand All @@ -97,4 +101,5 @@ if [ "x$1" == "xstatus" ]; then
else
echo Server run with PID $pid
fi
echo
fi

0 comments on commit c434400

Please sign in to comment.