[gnome-initial-setup] Very simple-minded systemd integration



commit 1739049c32d52ad2880007df621ec92ff20e603e
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Oct 2 11:26:39 2012 -0400

    Very simple-minded systemd integration
    
    Install a systemd unit that touches /var/lib/gdm/run-initial-setup
    and then disables itself.

 data/Makefile.am                 |    4 ++++
 data/gnome-initial-setup.service |   13 +++++++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index b742c9d..3b80949 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -33,6 +33,9 @@ desktop_DATA =						\
 	setup-shell.desktop				\
 	$(NULL)
 
+systemdsystemunitdir = /usr/lib/systemd/system
+systemdsystemunit_DATA = gnome-initial-setup.service
+
 EXTRA_DIST =						\
 	20-gnome-initial-setup.rules			\
 	org.gnome.initial-setup.policy			\
@@ -41,6 +44,7 @@ EXTRA_DIST =						\
 	gnome-initial-setup.desktop.in.in		\
 	gnome-initial-setup-copy-worker.desktop.in.in	\
 	gnome-initial-setup.session			\
+	gnome-initial-setup.service			\
 	$(NULL)
 
 CLEANFILES =						\
diff --git a/data/gnome-initial-setup.service b/data/gnome-initial-setup.service
new file mode 100644
index 0000000..8b92bb0
--- /dev/null
+++ b/data/gnome-initial-setup.service
@@ -0,0 +1,13 @@
+Description=GNOME initial setup
+After=livesys.service
+Before=display-manager.service getty tty1 service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/touch /var/lib/gdm/run-initial-setup
+ExecStartPost=/usr/bin/systemctl disable gnome-initial-setup.service
+TimeoutSec=0
+RemainAfterExit=yes
+
+[Install]
+WantedBy=graphical.target



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]