Hello, I have a question to do with the bastille firewall. The system Ubuntu 6.10, ispconfig 2.2.11. I have a few custom rules that I use via /etc/Bastille/firewall.d/post-rule-setup.sh. My problem is everytime the server is rebooted I must create a directory /var/lock/subsys otherwise I get the error "touch: cannot touch `/var/lock/subsys/bastille-firewall': No such file or directory" My question is how can I keep from having the dir /var/lock/subsys removed everytime the server is rebooted?
You could modify /etc/init.d/ispconfig_server. Change Code: case "$1" in start) echo "Starting ISPConfig system..." {INITDIR}/mysqld start &> /dev/null {INITDIR}/mysql start &> /dev/null sleep 3 /root/ispconfig/httpd/bin/apachectl startssl /root/ispconfig/sv/ispconfig_wconf &> /dev/null & /root/ispconfig/php/php -q /root/ispconfig/scripts/shell/firewall.php to Code: case "$1" in start) echo "Starting ISPConfig system..." {INITDIR}/mysqld start &> /dev/null {INITDIR}/mysql start &> /dev/null sleep 3 /root/ispconfig/httpd/bin/apachectl startssl /root/ispconfig/sv/ispconfig_wconf &> /dev/null & [B][COLOR="Red"]mkdir -p /var/lock/subsys[/COLOR][/B] /root/ispconfig/php/php -q /root/ispconfig/scripts/shell/firewall.php