[systemd-devel] how to conditional reload service

Kirill Elagin kirelagin at gmail.com
Sun Jun 22 11:14:46 PDT 2014


`systemctl reload-or-restart`?


--
Кирилл Елагин


On Sun, Jun 22, 2014 at 10:05 PM, Vasiliy Tolstov <v.tolstov at selfip.ru>
wrote:

> Hi. I have a problem - bird service.
> [Unit]
> Description=BIRD routing daemon ipv6 version
> After=network.target
>
> [Service]
> ExecStart=/usr/bin/bird6 -f -u bird -g bird
> ExecReload=/usr/bin/birdc6 configure
> ExecStop=/usr/bin/birdc6 down
>
> [Install]
> WantedBy=multi-user.target
>
> In this case reload only works when service is runing. But if i need
> that reload acts as restart if service not running?
>
> --
> Vasiliy Tolstov,
> e-mail: v.tolstov at selfip.ru
> jabber: vase at selfip.ru
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140622/51e80c60/attachment.html>


More information about the systemd-devel mailing list