summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsystem-generators/gentoo-local-generator6
1 files changed, 2 insertions, 4 deletions
diff --git a/system-generators/gentoo-local-generator b/system-generators/gentoo-local-generator
index a6b3f5f..3a344c8 100755
--- a/system-generators/gentoo-local-generator
+++ b/system-generators/gentoo-local-generator
@@ -41,8 +41,7 @@ for f in *.start *.stop; do
svc_file=gentoo-local-${fn}.service
- cat > "${svc_dir}/${svc_file}" <<_EOF_
-[Unit]
+ echo "[Unit]
Description=Service for local.d/${fn}.*
After=multi-user.target graphical.target ${previous}
ConditionFileIsExecutable=${locald_dir}/${f}
@@ -52,8 +51,7 @@ Type=forking
RemainAfterExit=on
TimeoutSec=0
ExecStart=${start_cmd}
-ExecStop=${stop_cmd}
-_EOF_
+ExecStop=${stop_cmd}" > "${svc_dir}/${svc_file}"
ln -s "../${svc_file}" "${wan_dir}/${svc_file}"