service application that has access to the GUI
I have written the app that has a GUI part (it generates images from invisible javafx controls and saves them into images). As a next step I'd like to make it an application that is always running, i.e. something like a service.
I have looked at monit to make it a service, but monit complains:
Failed in XOpenDisplay
(java:4465): Gtk-WARNING **: cannot open display:
Do you have an idea if I can use monit or any similar application to directly run my app?
Features I need:
start my app after reboot
restart my app if it goes down
Any help is appreciated.