Re: [PATCH 1/1] systemd: restart services after update

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



On Wed, Jun 11, 2014 at 12:15 PM, Christian Hesse <list@xxxxxxxx> wrote:
> From: Christian Hesse <mail@xxxxxxxx>
>
> ---
>  systemd.install | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/systemd.install b/systemd.install
> index 5c370f7..11e97bc 100644
> --- a/systemd.install
> +++ b/systemd.install
> @@ -27,6 +27,12 @@ maybe_reexec() {
>
>    if sd_booted; then
>      systemctl --system daemon-reexec
> +
> +    for SERVICE in systemd-journald systemd-logind systemd-machined systemd-networkd systemd-resolved systemd-udevd; do
> +      if systemctl is-active ${SERVICE} >/dev/null; then
> +        systemctl restart ${SERVICE}
> +      fi
> +    done
>    fi
>  }
>
> --
> 2.0.0
>

I don't like the idea of restarting _any_ daemons at all. It should be
up to user to decide when a daemon is restarted.


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux