aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-01-24 18:16:24 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-01-24 18:16:24 +0000
commit52d97b053982554cda121819362ab39270014f9d (patch)
tree0ae459c59748c59cec9986114279080da9ad4aba
parent674a7f07a4bea925d057a31aba943d0ae7fa54d1 (diff)
downloadpfsense-packages-52d97b053982554cda121819362ab39270014f9d.tar.gz
pfsense-packages-52d97b053982554cda121819362ab39270014f9d.tar.bz2
pfsense-packages-52d97b053982554cda121819362ab39270014f9d.zip
* Create svscan structure correctly.
* Ensure multilog is reading from tinydns pipe to prevent blockage
-rw-r--r--packages/tinydns/tinydns.inc19
1 files changed, 2 insertions, 17 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index 623c96e8..5e0c5804 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -68,20 +68,6 @@ function tinydns_custom_php_install_command() {
# REQUIRE: LOGIN
# KEYWORD: FreeBSD
-MINSEGMENT=10240
-MAXSEGMENT=20480
-MAXFILESIZE=10240
-MAXFD=100
-MAXCHILD=40
-
-# ulimits
-ulimit -d \${{$minsegment}}
-ulimit -f \${{$maxfilesize}}
-ulimit -m \${{$maxsegment}}
-ulimit -n \${{$$maxfd}}
-ulimit -s \${{$minsegment}}
-ulimit -u \${{$maxchild}}
-
. /etc/rc.subr
name="svscan"
@@ -143,9 +129,8 @@ function tinydns_custom_php_changeip_command() {
exec("/usr/sbin/pw useradd Gtinydns");
exec("/usr/sbin/pw useradd Gdnslog");
exec("/usr/local/bin/tinydns-conf Gtinydns Gdnslog /etc/tinydns {$ip}");
- exec("/bin/ln -s /etc/tinydns /service");
- sleep(5);
- exec("/usr/local/bin/svstat /service/tinydns");
+ exec("/bin/mkdir /service");
+ exec("/bin/ln -s /etc/tinydns /service/");
if($updatecron) {
$text_1 = "*/1 * * * * root /usr/bin/nice -n20 /etc/ping_hosts.sh";
$text_5 = "*/5 * * * * root /usr/bin/nice -n20 /etc/ping_hosts.sh";