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

Re: Systemd dependencies



Hi Michael

On Mon, Feb 26, 2018 at 09:46:22AM +0100, Michael Meskes wrote:
> do we have something like virtual entities for systemd service files? In SysV
> we could require that mail-transport-agent was started before starting a
> service. But how is this supposed to be handled with systemd?

You can have aliases, like there exists one in form of syslog.service.
For such aliases you just define normal After/Wants/Requires entries.

However I really would start one step before.  What exactly do you think
a service dependency on "mail-transport-agent" does provide you?

The virtual package "mail-transport-agent" provides you with
/usr/sbin/sendmail to send mails.  However to use this interface you
don't need a service running (and several implementations of this
interface don't have any service apart from cron).

Regards,
Bastian

-- 
Beam me up, Scotty!


Reply to: