From d74318f9694b7b852fc3189fff3866408fc0ccd0 Mon Sep 17 00:00:00 2001
From: Thorsten Glaser <tg@mirbsd.org>
Date: Sat, 3 May 2014 22:02:33 +0000
Subject: =?UTF-8?q?automatic=20d=C3=A6monising=20of=20services?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 package/pmacct/files/nfacctd.init | 1 +
 package/pmacct/files/pmacctd.init | 1 +
 2 files changed, 2 insertions(+)

(limited to 'package/pmacct')

diff --git a/package/pmacct/files/nfacctd.init b/package/pmacct/files/nfacctd.init
index 5acd849b4..bae6be494 100644
--- a/package/pmacct/files/nfacctd.init
+++ b/package/pmacct/files/nfacctd.init
@@ -7,6 +7,7 @@ case $1 in
 autostop) ;;
 autostart)
 	test x"${nfacctd:-NO}" = x"NO" && exit 0
+	test x"$nfacctd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
 	exec sh $0 start
 	;;
 start)
diff --git a/package/pmacct/files/pmacctd.init b/package/pmacct/files/pmacctd.init
index d56a01330..d3f5a3017 100644
--- a/package/pmacct/files/pmacctd.init
+++ b/package/pmacct/files/pmacctd.init
@@ -7,6 +7,7 @@ case $1 in
 autostop) ;;
 autostart)
 	test x"${pmacctd:-NO}" = x"NO" && exit 0
+	test x"$pmacctd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
 	exec sh $0 start
 	;;
 start)
-- 
cgit v1.2.3