From 3938ef44d2a3af5f3c07efcafb4bd0150660c4fc Mon Sep 17 00:00:00 2001 From: Jacek Konieczny Date: Thu, 23 Apr 2015 09:09:20 +0200 Subject: [PATCH] drop all Upstart hacks --- gdm.init | 2 -- gdm.spec | 21 +-------------------- gdm.upstart | 13 ------------- 3 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 gdm.upstart diff --git a/gdm.init b/gdm.init index 2d93dce..13ca65b 100644 --- a/gdm.init +++ b/gdm.init @@ -14,8 +14,6 @@ . /etc/rc.d/init.d/functions -upstart_controlled - # Get service config if [ -f /etc/sysconfig/gdm ]; then . /etc/sysconfig/gdm diff --git a/gdm.spec b/gdm.spec index 1e60635..4c72852 100644 --- a/gdm.spec +++ b/gdm.spec @@ -29,7 +29,6 @@ Source3: %{name}-pld-logo.png Source4: %{name}-autologin.pamd Source5: %{name}-custom.desktop Source6: %{name}-default.desktop -Source7: %{name}.upstart Source9: %{name}.tmpfiles Source10: %{name}-fingerprint.pamd Source11: %{name}-launch-environment.pamd @@ -198,19 +197,6 @@ Init script for GDM. %description init -l pl.UTF-8 Skrypt init dla GDM-a. -%package upstart -Summary: Upstart job description for GDM -Summary(pl.UTF-8): Opis zadania Upstart dla GDM -Group: Daemons -Requires: %{name} = %{epoch}:%{version}-%{release} -Requires: upstart >= 0.6 - -%description upstart -Upstart job description for GDM. - -%description upstart -l pl.UTF-8 -Opis zadania Upstart dla GDM. - %prep %setup -q %patch0 -p1 @@ -247,7 +233,7 @@ touch data/gdm.schemas.in.in %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security,init} \ +install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \ $RPM_BUILD_ROOT{/home/services/xdm,/var/log/gdm} \ $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{systemdunitdir}} \ $RPM_BUILD_ROOT%{systemdtmpfilesdir} @@ -261,7 +247,6 @@ cp -p %{SOURCE10} $RPM_BUILD_ROOT/etc/pam.d/gdm-fingerprint cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/pam.d/gdm-launch-environment install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm -cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/init/%{name}.conf cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service cp -p %{SOURCE9} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf @@ -391,7 +376,3 @@ fi %defattr(644,root,root,755) %attr(754,root,root) /etc/rc.d/init.d/gdm %{systemdunitdir}/gdm.service - -%files upstart -%defattr(644,root,root,755) -%config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf diff --git a/gdm.upstart b/gdm.upstart deleted file mode 100644 index 21b7c24..0000000 --- a/gdm.upstart +++ /dev/null @@ -1,13 +0,0 @@ -description "Starts the Gnome Display Manager" - -start on stopped rc RUNLEVEL=5 and started messagebus - -# if you have haldaemon present as well: -#start on pld.sysinit-done and started messagebus and started haldaemon -#stop on pld.shutdown-started -stop on starting rc RUNLEVEL=[!5] - -respawn -respawn limit 10 120 - -exec /usr/sbin/gdm -- 2.43.0