mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
19 lines
419 B
Perl
Executable File
19 lines
419 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# start.cgi
|
|
# Start up the PPTP server
|
|
|
|
require './pptp-server-lib.pl';
|
|
&error_setup($text{'start_err'});
|
|
$access{'apply'} || &error($text{'start_ecannot'});
|
|
$cmd = $config{'start_cmd'} || $config{'pptpd'};
|
|
$temp = &transname();
|
|
$rv = &system_logged("$cmd >$temp 2>&1 </dev/null");
|
|
$out = `cat $temp`;
|
|
unlink($temp);
|
|
if ($rv) {
|
|
&error("<pre>$out</pre>");
|
|
}
|
|
&webmin_log("start");
|
|
&redirect("");
|
|
|