I have an application that needs to be always working on a MacMini, I use crontab to start it but in High Sierra and Mojave, the app only works normally after logging on to the desktop. I need it to be working even without being logged in. It worked normally in Sierra ! I start the app in crontab with the command:
@reboot su - user -c "sleep 20 ; application"
and a script restart it if there's a problem! Any idea how I can fix this? TIA