systemd: Move timeout from service files to sysconf files

This follows the example set by libvirtd, and makes it easier for
the admin to tweak the timeout or disable it altogether.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Andrea Bolognani 2020-04-02 18:01:12 +02:00
parent 93c13f0d93
commit ef0fa8395f
24 changed files with 24 additions and 24 deletions

View File

@ -14,7 +14,7 @@ Documentation=https://libvirt.org
[Service] [Service]
Type=notify Type=notify
EnvironmentFile=-@sysconfdir@/sysconfig/virtinterfaced EnvironmentFile=-@sysconfdir@/sysconfig/virtinterfaced
ExecStart=@sbindir@/virtinterfaced --timeout 120 $VIRTINTERFACED_ARGS ExecStart=@sbindir@/virtinterfaced $VIRTINTERFACED_ARGS
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure

View File

@ -1,3 +1,3 @@
# Customizations for the virtinterfaced.service systemd unit # Customizations for the virtinterfaced.service systemd unit
VIRTINTERFACED_ARGS="" VIRTINTERFACED_ARGS="--timeout 120"

View File

@ -18,7 +18,7 @@ ConditionPathExists=/proc/xen/capabilities
[Service] [Service]
Type=notify Type=notify
EnvironmentFile=-@sysconfdir@/sysconfig/virtxend EnvironmentFile=-@sysconfdir@/sysconfig/virtxend
ExecStart=@sbindir@/virtxend --timeout 120 $VIRTXEND_ARGS ExecStart=@sbindir@/virtxend $VIRTXEND_ARGS
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure
KillMode=process KillMode=process

View File

@ -1,3 +1,3 @@
# Customizations for the virtxend.service systemd unit # Customizations for the virtxend.service systemd unit
VIRTXEND_ARGS="" VIRTXEND_ARGS="--timeout 120"

View File

@ -19,7 +19,7 @@ Documentation=https://libvirt.org
[Service] [Service]
Type=notify Type=notify
EnvironmentFile=-@sysconfdir@/sysconfig/virtlxcd EnvironmentFile=-@sysconfdir@/sysconfig/virtlxcd
ExecStart=@sbindir@/virtlxcd --timeout 120 $VIRTLXCD_ARGS ExecStart=@sbindir@/virtlxcd $VIRTLXCD_ARGS
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
KillMode=process KillMode=process
Restart=on-failure Restart=on-failure

View File

@ -1,3 +1,3 @@
# Customizations for the virtlxcd.service systemd unit # Customizations for the virtlxcd.service systemd unit
VIRTLXCD_ARGS="" VIRTLXCD_ARGS="--timeout 120"

View File

@ -14,7 +14,7 @@ Documentation=https://libvirt.org
[Service] [Service]
Type=notify Type=notify
EnvironmentFile=-@sysconfdir@/sysconfig/virtnetworkd EnvironmentFile=-@sysconfdir@/sysconfig/virtnetworkd
ExecStart=@sbindir@/virtnetworkd --timeout 120 $VIRTNETWORKD_ARGS ExecStart=@sbindir@/virtnetworkd $VIRTNETWORKD_ARGS
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure
KillMode=process KillMode=process

View File

@ -1,3 +1,3 @@
# Customizations for the virtnetworkd.service systemd unit # Customizations for the virtnetworkd.service systemd unit
VIRTNETWORKD_ARGS="" VIRTNETWORKD_ARGS="--timeout 120"

View File

@ -14,7 +14,7 @@ Documentation=https://libvirt.org
[Service] [Service]
Type=notify Type=notify
EnvironmentFile=-@sysconfdir@/sysconfig/virtnodedevd EnvironmentFile=-@sysconfdir@/sysconfig/virtnodedevd
ExecStart=@sbindir@/virtnodedevd --timeout 120 $VIRTNODEDEVD_ARGS ExecStart=@sbindir@/virtnodedevd $VIRTNODEDEVD_ARGS
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure

View File

@ -1,3 +1,3 @@
# Customizations for the virtnodedevd.service systemd unit # Customizations for the virtnodedevd.service systemd unit
VIRTNODEDEVD_ARGS="" VIRTNODEDEVD_ARGS="--timeout 120"

View File

@ -14,7 +14,7 @@ Documentation=https://libvirt.org
[Service] [Service]
Type=notify Type=notify
EnvironmentFile=-@sysconfdir@/sysconfig/virtnwfilterd EnvironmentFile=-@sysconfdir@/sysconfig/virtnwfilterd
ExecStart=@sbindir@/virtnwfilterd --timeout 120 $VIRTNWFILTERD_ARGS ExecStart=@sbindir@/virtnwfilterd $VIRTNWFILTERD_ARGS
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure

View File

@ -1,3 +1,3 @@
# Customizations for the virtnwfilterd.service systemd unit # Customizations for the virtnwfilterd.service systemd unit
VIRTNWFILTERD_ARGS="" VIRTNWFILTERD_ARGS="--timeout 120"

View File

@ -19,7 +19,7 @@ Documentation=https://libvirt.org
[Service] [Service]
Type=notify Type=notify
EnvironmentFile=-@sysconfdir@/sysconfig/virtqemud EnvironmentFile=-@sysconfdir@/sysconfig/virtqemud
ExecStart=@sbindir@/virtqemud --timeout 120 $VIRTQEMUD_ARGS ExecStart=@sbindir@/virtqemud $VIRTQEMUD_ARGS
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
KillMode=process KillMode=process
Restart=on-failure Restart=on-failure

View File

@ -1,3 +1,3 @@
# Customizations for the virtqemud.service systemd unit # Customizations for the virtqemud.service systemd unit
VIRTQEMUD_ARGS="" VIRTQEMUD_ARGS="--timeout 120"

View File

@ -14,7 +14,7 @@ Documentation=https://libvirt.org
[Service] [Service]
Type=notify Type=notify
EnvironmentFile=-@sysconfdir@/sysconfig/virtproxyd EnvironmentFile=-@sysconfdir@/sysconfig/virtproxyd
ExecStart=@sbindir@/virtproxyd --timeout 120 $VIRTPROXYD_ARGS ExecStart=@sbindir@/virtproxyd $VIRTPROXYD_ARGS
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure

View File

@ -1,3 +1,3 @@
# Customizations for the virtproxyd.service systemd unit # Customizations for the virtproxyd.service systemd unit
VIRTPROXYD_ARGS="" VIRTPROXYD_ARGS="--timeout 120"

View File

@ -14,7 +14,7 @@ Documentation=https://libvirt.org
[Service] [Service]
Type=notify Type=notify
EnvironmentFile=-@sysconfdir@/sysconfig/virtsecretd EnvironmentFile=-@sysconfdir@/sysconfig/virtsecretd
ExecStart=@sbindir@/virtsecretd --timeout 120 $VIRTSECRETD_ARGS ExecStart=@sbindir@/virtsecretd $VIRTSECRETD_ARGS
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure

View File

@ -1,3 +1,3 @@
# Customizations for the virtsecretd.service systemd unit # Customizations for the virtsecretd.service systemd unit
VIRTSECRETD_ARGS="" VIRTSECRETD_ARGS="--timeout 120"

View File

@ -16,7 +16,7 @@ Documentation=https://libvirt.org
[Service] [Service]
Type=notify Type=notify
EnvironmentFile=-@sysconfdir@/sysconfig/virtstoraged EnvironmentFile=-@sysconfdir@/sysconfig/virtstoraged
ExecStart=@sbindir@/virtstoraged --timeout 120 $VIRTSTORAGED_ARGS ExecStart=@sbindir@/virtstoraged $VIRTSTORAGED_ARGS
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure

View File

@ -1,3 +1,3 @@
# Customizations for the virtstoraged.service systemd unit # Customizations for the virtstoraged.service systemd unit
VIRTSTORAGED_ARGS="" VIRTSTORAGED_ARGS="--timeout 120"

View File

@ -15,7 +15,7 @@ Documentation=https://libvirt.org
[Service] [Service]
Type=notify Type=notify
EnvironmentFile=-@sysconfdir@/sysconfig/virtvboxd EnvironmentFile=-@sysconfdir@/sysconfig/virtvboxd
ExecStart=@sbindir@/virtvboxd --timeout 120 $VIRTVBOXD_ARGS ExecStart=@sbindir@/virtvboxd $VIRTVBOXD_ARGS
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure

View File

@ -1,3 +1,3 @@
# Customizations for the virtvboxd.service systemd unit # Customizations for the virtvboxd.service systemd unit
VIRTVBOXD_ARGS="" VIRTVBOXD_ARGS="--timeout 120"

View File

@ -15,7 +15,7 @@ Documentation=https://libvirt.org
[Service] [Service]
Type=notify Type=notify
EnvironmentFile=-@sysconfdir@/sysconfig/virtvzd EnvironmentFile=-@sysconfdir@/sysconfig/virtvzd
ExecStart=@sbindir@/virtvzd --timeout 120 $VIRTVZD_ARGS ExecStart=@sbindir@/virtvzd $VIRTVZD_ARGS
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure

View File

@ -1,3 +1,3 @@
# Customizations for the virtvzd.service systemd unit # Customizations for the virtvzd.service systemd unit
VIRTVZD_ARGS="" VIRTVZD_ARGS="--timeout 120"