0

I have a timer which has a dependency on a service using PartOf. So my timer looks like

[Unit]
PartOf=test.service

[Timer]
Unit=random.service
OnCalendar=*:0/5
OnBootSec=0min

[Install]
WantedBy=timers.target

I stopped this timer and then restarted test.service. I was expecting the timer to also be started but it didn't happen. Am I understanding the meaning of PartOf incorrectly?

1
  • If I'm not wrong your unit (timer in your case) must be running. You say stopped your timer so if the test.service is restarted or stopped the timer will not have any effect unless this one is running. Sep 23 at 18:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.