chiark / gitweb /
build-sys: make rc-local support part of SYSV compat
[elogind.git] / units / halt-local.service.in
similarity index 75%
rename from units/fedora/halt-local.service
rename to units/halt-local.service.in
index a0a3a292e7ccd87ba33ce800179e92fe9587c2eb..c8be8965a3e978f5cffcded5f2e9997457ba189e 100644 (file)
@@ -6,15 +6,15 @@
 #  (at your option) any later version.
 
 [Unit]
-Description=/sbin/halt.local Compatibility
-ConditionFileIsExecutable=/sbin/halt.local
+Description=@RC_LOCAL_SCRIPT_PATH_STOP@ Compatibility
+ConditionFileIsExecutable=@RC_LOCAL_SCRIPT_PATH_STOP@
 DefaultDependencies=no
 After=shutdown.target
 Before=final.target
 
 [Service]
 Type=oneshot
-ExecStart=/sbin/halt.local
+ExecStart=@RC_LOCAL_SCRIPT_PATH_STOP@
 TimeoutSec=0
 StandardOutput=tty
 RemainAfterExit=yes