diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/squid.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/squid.xml b/packages/squid.xml index 14ccfc7d..eb7f3a43 100644 --- a/packages/squid.xml +++ b/packages/squid.xml @@ -63,7 +63,7 @@ $fout = fopen("/usr/local/etc/squid/squid.conf", "a"); if ($_POST['cache_size'] != "") fwrite($fout, "cache_mem " . $_POST['cache_size'] . " MB\n"); fclose($fout); - mwexec("/usr/bin/killall -HUP squid"); + mwexec("/usr/local/sbin/squid -k reconfigure"); conf_mount_ro(); config_unlock(); } @@ -75,9 +75,9 @@ fwrite($fout, "#!/bin/sh\n"); fwrite($fout, "/usr/local/sbin/squid\n\n"); fclose($fout); - mwexec("chmod a+x /usr/local/etc/rc.d/squid.sh"); + chmod("/usr/local/etc/rc.d/squid.sh", 755); mwexec("/usr/local/sbin/squid -z"); - mwexec("/usr/local/sbin/squid"); + mwexec("/usr/local/etc/rc.d/squid.sh"); filter_configure(); </custom_php_install_command> <custom_php_deinstall_command> @@ -85,6 +85,6 @@ filter_configure(); mwexec("/etc/rc.filter_configure"); </custom_php_deinstall_command> - <start_command>/usr/local/sbin/squid</start_command> + <start_command>/usr/local/etc/rc.d/squid.sh</start_command> <process_kill_command>squid</process_kill_command> </packagegui> |