aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2012-08-02 14:39:17 +0545
committerPhil Davis <phil.davis@world.inf.org>2012-08-02 14:39:17 +0545
commit7e998984fb1856a5b54bdab3a11aa6bd892fd584 (patch)
treee2693dc6a5ebe8af601b9a05fedce059e9522fe5 /config/squid
parent88358a3ff3f9e182db246e6abdd168669a26bdd5 (diff)
downloadpfsense-packages-7e998984fb1856a5b54bdab3a11aa6bd892fd584.tar.gz
pfsense-packages-7e998984fb1856a5b54bdab3a11aa6bd892fd584.tar.bz2
pfsense-packages-7e998984fb1856a5b54bdab3a11aa6bd892fd584.zip
Add a matching conf_mount_ro call for squid
After write_rcfile() we need to conf_mount_ro() so that the mount reference count is decremented, otherwise the filesystem will get left in read-write mode on nanobsd. Note: in squid_resync there is already a correct pair of conf_mount_rw() and conf_mount_ro(), so no need to touch that for squid(2).
Diffstat (limited to 'config/squid')
-rw-r--r--config/squid/squid.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc
index 6fdddfda..8e426176 100644
--- a/config/squid/squid.inc
+++ b/config/squid/squid.inc
@@ -1469,5 +1469,6 @@ if [ -z "`ps auxw | grep "[s]quid -D"|awk '{print $2}'`" ];then
EOD;
conf_mount_rw();
write_rcfile($rc);
+ conf_mount_ro();
}
?>