Ah - I misunderstood you when you said “first command”.
You meant the first one in the post above, I meant the time in between asked for a pw like when using sudo.
I have never edited a systemd service and thus never encountered this - start, stop, enable, disable, restart all ask for it every time.
I have a problem where if I use the video-linux driver, my system won’t wake up from sleep if docker-desktop is running.
so I’m trying to create a service that stops docker-desktop before sleep.
here are my failed attempts:
I fixed the problem of that post, I was just testing the service with echo. but with this post, I’m asking about why “systemctl --user stop docker-desktop” doesn’t work in the service.
Seems like something like this should be in one’s handy toolbox, whether or not this page works, is a different question: https://www.shellcheck.net/
edit: It’s a Haskell program so you can install it also. Works quite well, I might add. 8)