Restart commands for MACOS

What is the problem?
I have setup Octoprint on my Mac mini running MacOS1.15.5.
Got all running and connected. On rebooting my Mac I am now stuck in safe mode.

What did you already try to solve it?
I have tried adding the commands:
sudo service octoprint restart
sudo -A service octoprint restart
sudo -S service octoprint restart
From the logs I need to input password to restart. How do I configure this?

From the looks of it
sudo -S service octoprint restart was the closest but want a password. -A I don have an ask pass program.

Logs
2! STDERR: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
2020-06-12 10:49:58,548 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-06-12 10:50:29,197 - octoprint.server.api.system - INFO - Performing command for core:restart: sudo -S service octoprint restart
2020-06-12 10:50:29,383 - octoprint.server.api.system - WARNING - Command for core:restart failed with return code 1:
! STDOUT:
! STDERR: Password:
! sudo: no password was provided
2020-06-12 10:51:58,909 - octoprint.server.api.system - INFO - Performing command for core:restart: sudo -A service octoprint restart
2020-06-12 10:51:58,991 - octoprint.server.api.system - WARNING - Command for core:restart failed with return code 1:
! STDOUT:
! STDERR: sudo: no askpass program specified, try setting SUDO_ASKPASS

I have found a solution of manually rebooting my Mac each time, wonder if there is a simpler way of just restarting the service some how?