aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy/haproxy.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-16 21:55:28 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-16 21:55:28 -0400
commita27686574094958e8bec10103e1ffd9ebd58bd60 (patch)
tree1ac17460345dba34ba6795187dd50b93b2c8fb17 /config/haproxy/haproxy.inc
parenta30ca566c4eab6be07092bc53377c2f94a4f5b9c (diff)
downloadpfsense-packages-a27686574094958e8bec10103e1ffd9ebd58bd60.tar.gz
pfsense-packages-a27686574094958e8bec10103e1ffd9ebd58bd60.tar.bz2
pfsense-packages-a27686574094958e8bec10103e1ffd9ebd58bd60.zip
Oops, actually write out rc.d file
Diffstat (limited to 'config/haproxy/haproxy.inc')
-rw-r--r--config/haproxy/haproxy.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc
index 2ba3edc1..7968371e 100644
--- a/config/haproxy/haproxy.inc
+++ b/config/haproxy/haproxy.inc
@@ -86,8 +86,11 @@ run_rc_command "\$1"
EOD;
+ $fd = fopen("/usr/local/etc/rc.d/haproxy.sh");
fwrite($fd, $haproxy);
fclose($fd);
+ exec("chmod a+rx /usr/local/etc/rc.d/haproxy.sh")
+
conf_mount_ro();
exec("/usr/local/etc/rc.d/haproxy.sh start");