Sintaxe para o ponto O trabalho do Upstart é
stop jobname
Você pode querer verificar a seção Cookbook Executar um aplicativo Java além disso.
Vocês poderiam ajudar com o script do Upstart?
Por algum motivo, não é possível interromper o processo java em service something stop
.
status do serviço diz bbb stop/waiting
Estou tentando executar meu aplicativo, que é o arquivo jar (java).
Veja como o meu script se parece
description "BBB API service"
# no start option as you might not want it to auto-start
# This might not be supported - you might need a: start on runlevel [3]
start on runlevel [3]
stop on runlevel [!2345]
# stop on shutdown
# if you want it to automatically restart if it crashes, leave the next line in
respawn
script
cd /home/ubuntu/bbb-server/target
su -c "/usr/bin/java -jar /home/ubuntu/bbb-server/target/api_standalone.jar" nobody
end script
Sintaxe para o ponto O trabalho do Upstart é
stop jobname
Você pode querer verificar a seção Cookbook Executar um aplicativo Java além disso.