chiark / gitweb /
unit: introduce ConditionFileIsExecutable= and use it where we check for a binary...
[elogind.git] / units / fedora / rc-local.service
index cb0700700b1ed4020964046d8dac5dbe0342e83c..f5f940f7ee41dcafc64eb361f25437b87a86ecca 100644 (file)
@@ -7,18 +7,12 @@
 
 [Unit]
 Description=/etc/rc.local Compatibility
-Requires=basic.target
-After=basic.target
-Conflicts=shutdown.target
-
-# The rcN.d symlink uses the name "local" while the script itself is
-# called "rc.local", hence carry both names here.
-Names=rc-local.service local.service
+ConditionFileIsExecutable=/etc/rc.d/rc.local
 
 [Service]
-ExecStart=/etc/rc.local start
-Type=simple
+Type=forking
+ExecStart=/etc/rc.d/rc.local start
 TimeoutSec=0
-StandardInput=tty
-ValidNoProcess=yes
+StandardOutput=tty
+RemainAfterExit=yes
 SysVStartPriority=99