This Ubuntu version uses Upstart to manage startup items. The example sysvinit and systemd therefore do not work.
Does anyone have an Upstart script for Openhab2 that I could look at please?
I start from the user console using this command below at present, but would like it to start boot/as a service.
execute as restricted user openhab:
sudo su -s /bin/bash -c ‘/opt/openhab2/start.sh’ openhab
There usually is a “skeleton” file in /etc/init.d which gives you the structure and the bulk of the script you need. All you need to do is fill in the variables at the top. You could also look around in those scripts for a simple example to pull from. I’ve been on systemd based systems for so long I don’t remember the specifics any longer.