Handle hostnames with upper-case letters
[webmin.git] / syslog / start.cgi
1 #!/usr/local/bin/perl
2 # start.cgi
3 # Start the syslog process
4
5 require './syslog-lib.pl';
6 $access{'noedit'} && &error($text{'start_ecannot'});
7 if ($config{'start_cmd'}) {
8         &system_logged("$config{'start_cmd'} >/dev/null 2>/dev/null </dev/null");
9         }
10 else {
11         &system_logged("cd / ; $config{'syslogd'} >/dev/null 2>/dev/null </dev/null &");
12         }
13 &webmin_log("start");
14 &redirect("");
15