Re: Systemd unit file implementation questions (ypbind)

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

 



On Thu, 14.04.11 14:57, "Jóhann B. Guðmundsson" (johannbg@xxxxxxxxx) wrote:

> 
> On 04/14/2011 02:35 PM, Michal Hlavinka wrote:
> > If I use Requires= directive, it starts driver for upsd, but is it possible to specify to
> > stop the driver when upsd stops?
> >
> 
> I think that you would use BindTo= instead of Requires= in upsd.service 
> ( that is if uspd is depend upon them being running = ) along with ExecStop=
> 
> In man systemd.unit
> 
>   BindTo=
>             Configures requirement dependencies, very similar in style 
> to Requires=, however in addition to this behaviour it also
>             declares that this unit is stopped when any of the units 
> listed suddenly disappears. Units can suddenly, unexpectedly
>             disappear if a service terminates on its own choice, a 
> device is unplugged or a mount point unmounted without involvement of
>             systemd.
> 
> ExecStop=-/bin/systemctl stop upsd-device.service
> ExecStop=-/bin/systemctl stop upsd-monitor.service

Why ExecStop= here?

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux