I'm configuring a Java app to run at boot using jsvc, following this tutorial which uses systemv
(init.d). I'm running Ubuntu 16.04, which uses systemd
, and am having a hard time finding exactly what I need to do to have it run at boot, and stop at shutdown.
So far I know I need to create a service with Type=forking
as the jsvc_exec
command which starts/stops the app forks once it has run.
What else do I need to include to have it work in a similar way to the systemv script from the tutorial?
Thanks