I have a timer/service unit-set that should run once a day under --user
conditions. It shows up with systemctl --user status
and gets logged in journal but there is a part of the command that fails.
It seems that something in the command is not being interpreted correctly. I want to futz with the unit file and run the service, examine the log, etc to debug the issue; however editing the timer to trigger a minute in the future, waiting, and checking the log is... tedious.
Can do something like systemctl --user execute xxxxxx.service
to just run the dang thing as if the timer triggered?
Failed to restart {foo}.service: Operation refused, unit {foo}.service may be requested by dependency only.
– eMPee584 Jul 09 '19 at 18:01RefuseManualStart=
andRefuseManualStop=
(which do exactly what they say). I've updated my answer to mention that. – intelfx Jul 29 '19 at 03:13fstrim.service
). – intelfx Apr 12 '20 at 03:58systemctl --user status foo.timer
saysActive: … 18min ago
. And the time in logs says similarlyApr 06 15:15:26 … Started run my script.
whereas the current time is ≈15:30. – Hi-Angel Apr 06 '23 at 12:37