[systemd-devel] [PATCH] Add Frugalware prefdm service
Miklos Vajna
vmiklos at frugalware.org
Tue Mar 8 16:04:04 PST 2011
Hi,
The mandrive patches made this local patch fail to apply - which
reminded me to submit the attached patch. :)
It does not affect other distros and adds the same prefdm.service we
were adding manually in the package build script.
Thanks.
PS: Yes, in the long run we want to migrate to separate kdm.service,
gdm.service, etc. - but we're not there yet.
-------------- next part --------------
From e16c4e2cc93cf8fb8a194bd9f0cc2faa83805932 Mon Sep 17 00:00:00 2001
From: Miklos Vajna <vmiklos at frugalware.org>
Date: Wed, 9 Mar 2011 00:49:47 +0100
Subject: [PATCH] Add Frugalware prefdm service
---
Makefile.am | 11 +++++++++++
units/frugalware/prefdm.service | 18 ++++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)
create mode 100644 units/frugalware/prefdm.service
diff --git a/Makefile.am b/Makefile.am
index 4caa243..fe682b2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -351,6 +351,11 @@ dist_systemunit_DATA += \
units/fedora/halt-local.service
endif
+if TARGET_FRUGALWARE
+dist_systemunit_DATA += \
+ units/frugalware/prefdm.service
+endif
+
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
units/plymouth-start.service \
@@ -1388,6 +1393,12 @@ if TARGET_MANDRIVA
$(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
endif
+if TARGET_FRUGALWARE
+ ( cd $(DESTDIR)$(systemunitdir) && \
+ rm -f display-manager.service && \
+ $(LN_S) prefdm.service display-manager.service )
+endif
+
if TARGET_DEBIAN_OR_UBUNTU
( cd $(DESTDIR)$(systemunitdir) && \
rm -f runlevel5.target && \
diff --git a/units/frugalware/prefdm.service b/units/frugalware/prefdm.service
new file mode 100644
index 0000000..8629c70
--- /dev/null
+++ b/units/frugalware/prefdm.service
@@ -0,0 +1,18 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Display Manager
+After=syslog.target local.service systemd-user-sessions.service
+
+Conflicts=splashy-quit.service
+After=splashy-quit.service
+
+[Service]
+ExecStart=/etc/rc.d/rc.4
+Restart=always
+RestartSec=0
--
1.7.4.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20110309/a3d27e61/attachment.pgp>
More information about the systemd-devel
mailing list