when service starts and waits for password in the background use this to enter password

sudo systemd-tty-ask-password-agent --query