[systemd-devel] (solved) Re: How to chain services driven by a timer?

Dan Nicholson dbn at endlessos.org
Wed Apr 17 21:03:16 UTC 2024


On Wed, Apr 17, 2024 at 2:49 PM Brian Reichert <reichert at numachi.com> wrote:
>
>   [Service]
>   Type=simple
>
>   ExecStart=/usr/local/sbin/post-logrotate

I assume that this is just a script that does some post-processing on
log files. In that case, I suggest that you use Type=oneshot with
RemainAfterExit=no (the default). Then the service will actually wait
until your script completes. Type=simple is expected to be used for a
service that doesn't exit under normal conditions.

--
Dan


More information about the systemd-devel mailing list