chiark / gitweb /
units: fix execution environment for a few services
authorLennart Poettering <lennart@poettering.net>
Tue, 18 May 2010 01:08:18 +0000 (03:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 18 May 2010 01:08:18 +0000 (03:08 +0200)
units/fedora/halt.service
units/fedora/killall.service
units/fedora/poweroff.service
units/fedora/rc-local.service
units/fedora/reboot.service
units/fedora/sysinit.service
units/getty@.service.m4

index acc47b5..06c588f 100644 (file)
@@ -22,6 +22,7 @@ After=shutdown.target killall.service
 
 [Service]
 Type=finish
+ValidNoProcess=yes
 Environment=INIT_HALT=HALT
 Environment=RUNLEVEL=0
 ExecStart=/etc/init.d/halt start
index 45868dd..13bb564 100644 (file)
@@ -20,4 +20,5 @@ Description=Kill All Processes
 
 [Service]
 Type=finish
+ValidNoProcess=yes
 ExecStart=/etc/init.d/killall start
index 758b7ca..a8cd680 100644 (file)
@@ -22,5 +22,6 @@ After=shutdown.target killall.service
 
 [Service]
 Type=finish
+ValidNoProcess=yes
 Environment=RUNLEVEL=0
 ExecStart=/etc/init.d/halt start
index 099bbab..e8284a1 100644 (file)
@@ -26,4 +26,7 @@ Names=rc-local.service local.service
 [Service]
 ExecStart=/etc/rc.local start
 Type=simple
+TimeoutSec=0
+StandardInput=tty
+ValidNoProcess=yes
 SysVStartPriority=99
index 9aec7aa..da83fa0 100644 (file)
@@ -22,5 +22,6 @@ After=shutdown.target killall.service
 
 [Service]
 Type=finish
+ValidNoProcess=yes
 Environment=RUNLEVEL=6
 ExecStart=/etc/init.d/reboot start
index 0d59490..f2098fd 100644 (file)
@@ -21,4 +21,7 @@ Before=local-fs.target remote-fs.target swap.target sockets.target
 
 [Service]
 ExecStart=/etc/rc.d/rc.sysinit
-Type=finish
+Type=forking
+TimeoutSec=0
+StandardInput=tty
+ValidNoProcess=yes
index 9787638..ffcc42a 100644 (file)
@@ -27,3 +27,5 @@ After=basic.target
 [Service]
 Type=simple
 ExecStart=GETTY %I
+Restart=restart-always
+RestartSec=0