[packages/lxdm] add missing initscript registration

glen glen at pld-linux.org
Sun Mar 2 12:50:46 CET 2014


commit 299f73bc11bcd71a0529da655ba51ef65b4edd38
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 2 11:50:19 2014 +0000

    add missing initscript registration

 lxdm.init |  3 ---
 lxdm.spec | 10 +++++++++-
 2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/lxdm.spec b/lxdm.spec
index b96de53..988e50c 100644
--- a/lxdm.spec
+++ b/lxdm.spec
@@ -1,7 +1,7 @@
 Summary:	Light weight X11 display manager
 Name:		lxdm
 Version:	0.4.1
-Release:	12
+Release:	13
 License:	GPL v3
 Group:		X11/Applications
 Source0:	http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
@@ -83,8 +83,16 @@ ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/lxdm.service
 rm -rf $RPM_BUILD_ROOT
 
 %post init
+/sbin/chkconfig --add %{name}
+%service -n %{name} restart
 %systemd_reload
 
+%preun init
+if [ "$1" = "0" ]; then
+	/sbin/chkconfig --del %{name}
+	%service %{name} stop
+fi
+
 %postun init
 %systemd_reload
 
diff --git a/lxdm.init b/lxdm.init
old mode 100644
new mode 100755
index 09ca235..1a7e73b
--- a/lxdm.init
+++ b/lxdm.init
@@ -6,12 +6,9 @@
 #
 # description:	Starts and stops the LXDM Display Manager at startup and \
 #		shutdown..
-#
 # probe:	true
 # hide:		true
 #
-# $Id$
-
 # Source function library
 . /etc/rc.d/init.d/functions
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lxdm.git/commitdiff/299f73bc11bcd71a0529da655ba51ef65b4edd38



More information about the pld-cvs-commit mailing list