diff options
author | Bill Nottingham <notting@redhat.com> | 2010-09-07 15:24:51 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-09-07 15:24:51 -0400 |
commit | f39163514fc1b108c80df1b9b01b63d2d9eafe8d (patch) | |
tree | 051473a7f1fc9ff938b35f6df868bb6fe24cdd33 | |
parent | 3f3a8ad5e4c5d3e3b32b2a8cb615ba878dfcb05e (diff) | |
download | initscripts-f39163514fc1b108c80df1b9b01b63d2d9eafe8d.tar initscripts-f39163514fc1b108c80df1b9b01b63d2d9eafe8d.tar.gz initscripts-f39163514fc1b108c80df1b9b01b63d2d9eafe8d.tar.bz2 initscripts-f39163514fc1b108c80df1b9b01b63d2d9eafe8d.tar.xz initscripts-f39163514fc1b108c80df1b9b01b63d2d9eafe8d.zip |
prefdm, rc-local, ctrl-alt-del are system defaults. Don't package them otherwise. (#630952)
Notably, they cannot be enabled/disabled. They can be overriden via /etc/systemd/system.
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | initscripts.spec | 3 | ||||
-rw-r--r-- | systemd/prefdm.service | 1 | ||||
-rw-r--r-- | systemd/rc-local.service | 3 |
4 files changed, 7 insertions, 9 deletions
@@ -116,9 +116,12 @@ install: ln -s halt $(ROOT)/etc/rc.d/init.d/reboot - mkdir -p $(ROOT)/etc/systemd/system - ln -s /lib/systemd/system/prefdm.service $(ROOT)/etc/systemd/system/display-manager.service - ln -s /lib/systemd/system/reboot.target $(ROOT)/etc/systemd/system/ctrl-alt-del.target + mkdir -p -m 755 $(ROOT)/lib/systemd/system/multi-user.target.wants + mkdir -p -m 755 $(ROOT)/lib/systemd/system/graphical.target.wants + ln -s prefdm.service $(ROOT)/lib/systemd/system/display-manager.service + ln -s reboot.target $(ROOT)/lib/systemd/system/ctrl-alt-del.target + ln -s ../rc-local.service $(ROOT)/lib/systemd/system/multi-user.target.wants + ln -s ../display-manager.service $(ROOT)/lib/systemd/system/graphical.target.wants # These are LSB compatibility symlinks. At some point in the future # the actual files will be here instead of symlinks diff --git a/initscripts.spec b/initscripts.spec index ede235ed..38c0c1b1 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -97,7 +97,7 @@ make ROOT=$RPM_BUILD_ROOT SUPERUSER=`id -un` SUPERGROUP=`id -gn` mandir=%{_mandi rm -rf $RPM_BUILD_ROOT/etc/init %endif %if ! %{_with_systemd} - rm -rf $RPM_BUILD_ROOT/etc/systemd $RPM_BUILD_ROOT/lib/systemd + rm -rf $RPM_BUILD_ROOT/lib/systemd %endif rm -f $RPM_BUILD_ROOT/etc/inittab.* @@ -212,7 +212,6 @@ rm -rf $RPM_BUILD_ROOT /etc/init/* %endif %if %{_with_systemd} -%config(noreplace) /etc/systemd/system/* /lib/systemd/system/* %endif %config /etc/X11/prefdm diff --git a/systemd/prefdm.service b/systemd/prefdm.service index bbdf0d37..60a5ed05 100644 --- a/systemd/prefdm.service +++ b/systemd/prefdm.service @@ -20,4 +20,3 @@ RestartSec=0 [Install] Alias=display-manager.service -WantedBy=graphical.target diff --git a/systemd/rc-local.service b/systemd/rc-local.service index 6be4fcf4..21ecfb23 100644 --- a/systemd/rc-local.service +++ b/systemd/rc-local.service @@ -14,6 +14,3 @@ TimeoutSec=0 StandardOutput=tty RemainAfterExit=yes SysVStartPriority=99 - -[Install] -WantedBy=multi-user.target |