From 07405e90968c39f04bc00e1af5b1671940482b19 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 7 Jul 2010 22:29:41 +0200 Subject: [PATCH] units: in order to make the default services parseable by GKeyFile, merge repeated lines --- units/fedora/halt.service | 3 +-- units/gentoo/halt.service | 3 +-- units/getty@.service.m4 | 7 +------ units/graphical.target.m4 | 5 +---- units/multi-user.target.m4 | 7 +------ units/suse/halt.service | 3 +-- 6 files changed, 6 insertions(+), 22 deletions(-) diff --git a/units/fedora/halt.service b/units/fedora/halt.service index 815c8fbd..106ac6b6 100644 --- a/units/fedora/halt.service +++ b/units/fedora/halt.service @@ -15,6 +15,5 @@ Conflicts=dev-hugepages.automount dev-mqueue.automount proc-sys-fs-binfmt_misc.a [Service] Type=finish ValidNoProcess=yes -Environment=INIT_HALT=HALT -Environment=RUNLEVEL=0 +Environment=INIT_HALT=HALT RUNLEVEL=0 ExecStart=/etc/init.d/halt start diff --git a/units/gentoo/halt.service b/units/gentoo/halt.service index ecf4cff4..56ac4938 100644 --- a/units/gentoo/halt.service +++ b/units/gentoo/halt.service @@ -15,6 +15,5 @@ Conflicts=dev-hugepages.automount dev-mqueue.automount proc-sys-fs-binfmt_misc.a [Service] Type=finish ValidNoProcess=yes -Environment=INIT_HALT=HALT -Environment=RC_DOWN_HARDDISK=yes +Environment=INIT_HALT=HALT RC_DOWN_HARDDISK=yes ExecStart=/etc/init.d/shutdown.sh diff --git a/units/getty@.service.m4 b/units/getty@.service.m4 index f1f7f326..b82f5aad 100644 --- a/units/getty@.service.m4 +++ b/units/getty@.service.m4 @@ -29,9 +29,4 @@ RestartSec=0 KillMode=process-group [Install] -Alias=getty.target.wants/getty@tty1.service -Alias=getty.target.wants/getty@tty2.service -Alias=getty.target.wants/getty@tty3.service -Alias=getty.target.wants/getty@tty4.service -Alias=getty.target.wants/getty@tty5.service -Alias=getty.target.wants/getty@tty6.service +Alias=getty.target.wants/getty@tty1.service getty.target.wants/getty@tty2.service getty.target.wants/getty@tty3.service getty.target.wants/getty@tty4.service getty.target.wants/getty@tty5.service getty.target.wants/getty@tty6.service diff --git a/units/graphical.target.m4 b/units/graphical.target.m4 index 6228026d..468770a5 100644 --- a/units/graphical.target.m4 +++ b/units/graphical.target.m4 @@ -22,7 +22,4 @@ Names=runlevel5.target )m4_dnl [Install] -Alias=default.target -m4_ifdef(`TARGET_FEDORA', -Alias=runlevel5.target -)m4_dnl +Alias=default.target m4_ifdef(`TARGET_FEDORA', runlevel5.target) diff --git a/units/multi-user.target.m4 b/units/multi-user.target.m4 index eb46b2b4..010e7d84 100644 --- a/units/multi-user.target.m4 +++ b/units/multi-user.target.m4 @@ -22,9 +22,4 @@ Names=runlevel3.target )m4_dnl [Install] -Alias=default.target -m4_ifdef(`TARGET_FEDORA', -Alias=runlevel2.target -Alias=runlevel3.target -Alias=runlevel4.target -)m4_dnl +Alias=default.target m4_ifdef(`TARGET_FEDORA', runlevel2.target runlevel3.target runlevel4.target) diff --git a/units/suse/halt.service b/units/suse/halt.service index fbcf154f..40d58b36 100644 --- a/units/suse/halt.service +++ b/units/suse/halt.service @@ -15,6 +15,5 @@ Conflicts=dev-hugepages.automount dev-mqueue.automount proc-sys-fs-binfmt_misc.a [Service] Type=finish ValidNoProcess=yes -Environment=INIT_HALT=HALT -Environment=RUNLEVEL=0 +Environment=INIT_HALT=HALT RUNLEVEL=0 ExecStart=/etc/init.d/halt start -- 2.39.5