~zohn-joidberg/webcontentcontrol/main

« back to all changes in this revision

Viewing changes to scripts/common_functions.sh

  • Committer: zohn-joidberg
  • Date: 2010-07-22 08:27:33 UTC
  • Revision ID: zohn.joidberg@gmail.com-20100722082733-ohlcmp41vseafzyr
fixed bug in start_all_nogui

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
    gksudo /etc/init.d/dansguardian stop;
79
79
}
80
80
 
 
81
# called nogui because it does not require gksudo (which might not be available on all systems)
81
82
function start_all_nogui {
82
 
    ## Starts what it is not running
83
 
    ## Firehol
84
 
    if (test $fh_running -eq 0);
85
 
    then /etc/init.d/firehol start;
86
 
    else echo "FireHol already running";
87
 
    fi
88
 
 
89
 
    ## TinyProxy
90
 
    if (test $tp_running -eq 0);
91
 
    then /etc/init.d/tinyproxy start;
92
 
    else echo "TinyProxy already running";
93
 
    fi
94
 
 
95
 
    ## DansGuardian
96
 
    if (test $dg_running -eq 0);
97
 
    then /etc/init.d/dansguardian start;
98
 
    else echo "DansGuardian already running";
99
 
    fi
 
83
    /etc/init.d/firehol start;
 
84
    /etc/init.d/tinyproxy start;
 
85
    /etc/init.d/dansguardian start;
100
86
}
101
87
 
102
88
function stop_all_nogui {