nohupを利用すればよい
#起動
nohup java -jar myapplication.jar > log.txt 2> errors.txt < /dev/null &
PID=$!
echo $PID > pid.txt
#停止
PID=$(cat pid.txt)
kill $PID
Go to list of users who liked
More than 5 years have passed since last update.
nohupを利用すればよい
#起動
nohup java -jar myapplication.jar > log.txt 2> errors.txt < /dev/null &
PID=$!
echo $PID > pid.txt
#停止
PID=$(cat pid.txt)
kill $PID
Register as a new user and use Qiita more conveniently
Go to list of users who liked