On Tue, Nov 11, 2014 at 7:52 PM, Jakob Schürz <[email protected]> wrote:
> Hi!
>
> I don't know, for which words I have to search to find a solution for my
> Problem.
>
> On my server i created a mailserver.target, on which all relevant services
> for the mailserver depend. So i can [re]start and stop all services (exim4,
> cyrus, saslauthd, amavis...) only with
>
> systemctl start|restart|stop mailserver.target

> But i don't know, how to start this unit for each user.
> systemctl start mailserver should scan each user and start
> [email protected], [email protected]...
>
> Is this possible with systemd? Or should i create a shell-script to do the
> job?

I'm not sure I understand the point of having fetchmail download *from
localhost*... it looks like it should be completely independent from
cyrus/etc.

Anyway, there is no command to "scan each user". To start multiple
units at once, make the target want all of them individually:
mailserver.target.wants/[email protected], and so on.

-- 
Mantas Mikulėnas <[email protected]>
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to