HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   bastille firewall help needed (http://www.howtoforge.com/forums/showthread.php?t=11699)

daveb 27th March 2007 18:40

bastille firewall help needed
 
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?

falko 28th March 2007 16:55

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 &
        mkdir -p /var/lock/subsys
        /root/ispconfig/php/php -q /root/ispconfig/scripts/shell/firewall.php


daveb 28th March 2007 21:27

falko,
Thank you, works like a charm.


All times are GMT +2. The time now is 02:21.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.