FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 04-01-2011, 10:05 AM
Martin Gracik
 
Default New systemd service files

---
systemd/firstboot-graphical.service | 7 ++++---
systemd/firstboot-text.service | 7 ++++---
2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/systemd/firstboot-graphical.service b/systemd/firstboot-graphical.service
index 77f1325..e8ea8fd 100644
--- a/systemd/firstboot-graphical.service
+++ b/systemd/firstboot-graphical.service
@@ -5,12 +5,13 @@ Before=prefdm.service getty@tty1.service
Conflicts=firstboot-text.service plymouth-quit.service

[Service]
-Environment=RUNLEVEL=5
+Type=oneshot
ExecStartPre=-/bin/plymouth quit
-ExecStart=/etc/init.d/firstboot start
+ExecStart=/usr/sbin/firstboot
+ExecStartPost=/bin/systemctl disable firstboot-graphical.service
+ExecStartPost=/bin/systemctl disable firstboot-text.service
TimeoutSec=0
RemainAfterExit=yes
-Type=oneshot
SysVStartPriority=99

[Install]
diff --git a/systemd/firstboot-text.service b/systemd/firstboot-text.service
index bcf59bf..f675720 100644
--- a/systemd/firstboot-text.service
+++ b/systemd/firstboot-text.service
@@ -4,11 +4,12 @@ After=livesys.service plymouth-quit.service
Before=prefdm.service getty@tty1.service

[Service]
-Environment=RUNLEVEL=3
-ExecStart=/etc/init.d/firstboot start
+Type=oneshot
+ExecStart=/usr/bin/setup
+ExecStartPost=/bin/systemctl disable firstboot-graphical.service
+ExecStartPost=/bin/systemctl disable firstboot-text.service
TimeoutSec=0
RemainAfterExit=yes
-Type=oneshot
SysVStartPriority=99
StandardInput=tty
TTYPath=/dev/tty1
--
1.7.3.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 11:48 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org