Re:Scaling Mastodon with systemd template units
by techhazard on Tuesday November 29, 2022 @05:55AM
(#33786003)
> Requires=network.target tells systemd not to start this mastodon.target if the network.target hasn’t been reached successfully.
That’s not true, Wants=/Requires= do not specify any order between units, only that without them the unit cannot be marked as succesful. This way they can still be started in parallel.
If you really want it to happen after network is up, you should add a dependency of After= under the Requires=.
Also network-online.target might be a better choice but YMMV.
That’s not true, Wants=/Requires= do not specify any order between units, only that without them the unit cannot be marked as succesful. This way they can still be started in parallel.
If you really want it to happen after network is up, you should add a dependency of After= under the Requires=.
Also network-online.target might be a better choice but YMMV.