Re: How to chain services driven by a timer?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 10, 2024 at 01:29:10PM -0600, Dan Nicholson wrote:
> On Wed, Apr 10, 2024 at 1:21???PM Andrei Borzenkov <arvidjaar@xxxxxxxxx> wrote:
> Just to be complete, your unit won't be triggered until you see it in
> "systemctl show -p Wants logrotate.service". With
> WantedBy=logrotate.service, you'll also find a symlink to your service
> in /etc/systemd/system/logrotate.service.wants/ once it's enabled.

Ok, double-checking:

  10-153-68-34:~ # systemctl show -p Wants logrotate.service
  Wants=post-logrotate.service
  10-153-68-34:~ # ls -ldtr --full-time
  /etc/systemd/system/logrotate.service.wants/post-logrotate.service
  lrwxrwxrwx 1 root root 42 2024-04-10 15:26:19.187115411 -0400
  /etc/systemd/system/logrotate.service.wants/post-logrotate.service ->
  /etc/systemd/system/post-logrotate.service

-- 
Brian Reichert				<reichert@xxxxxxxxxxx>
BSD admin/developer at large	



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux