4 require './frox-lib.pl';
5 &error_setup($text{'start_err'});
7 # Fixed up file on Debian that controls startup script
8 if ($config{'daemon_file'}) {
9 &lock_file($config{'daemon_file'});
10 &read_env_file($config{'daemon_file'}, \%daemon);
11 if ($daemon{'RUN_DAEMON'} ne 'yes') {
12 $daemon{'RUN_DAEMON'} = 'yes';
13 &write_env_file($config{'daemon_file'}, \%daemon);
15 &unlock_file($config{'daemon_file'});
18 if ($config{'start_cmd'}) {
19 $cmd = $config{'start_cmd'};
22 $cmd = "$config{'frox'} -f $config{'frox_conf'}";
25 $ex = &system_logged("($cmd) >$temp 2>&1 </dev/null");
28 if ($ex || (!$config{'start_cmd'} && $out =~ /\S/) || $out =~ /error/i) {
29 &error("<pre>$out</pre>");