Я пытаюсь сделать исполняемый файл linux как службу
Я выполняю свою программу, как показано ниже
java -jar mytestprogram.jar
создает процесс, который работает непрерывно и обслуживает запросы REST. Но я хочу запустить его как службу, где я могу сделать
service mytestprogram start
service mytestprogram stop
service mytestprogram status
chkconfig mytestprogram on
и т.д.. Какой самый простой способ сделать это?