chiark / gitweb /
build-sys: make rc-local support part of SYSV compat
[elogind.git] / units / rc-local.service.in
similarity index 66%
rename from units/fedora/rc-local.service
rename to units/rc-local.service.in
index 3b3bda9f6f32f083d6613dfbb2c790f3049679f1..97d44a7a27aebe8d074825db8fc458d8e8e79b16 100644 (file)
@@ -6,14 +6,15 @@
 #  (at your option) any later version.
 
 # This unit gets pulled automatically into multi-user.target by
-# systemd-rc-local-generator if /etc/rc.d/rc.local is executable.
+# systemd-rc-local-generator if @RC_LOCAL_SCRIPT_PATH_START@ is executable.
 [Unit]
-Description=/etc/rc.d/rc.local Compatibility
+Description=@RC_LOCAL_SCRIPT_PATH_START@ Compatibility
+ConditionFileIsExecutable=@RC_LOCAL_SCRIPT_PATH_START@
 After=network.target
 
 [Service]
 Type=forking
-ExecStart=/etc/rc.d/rc.local start
+ExecStart=@RC_LOCAL_SCRIPT_PATH_START@ start
 TimeoutSec=0
 RemainAfterExit=yes
 SysVStartPriority=99