MOON
Server: Apache
System: Linux cl1170g 4.19.62-mod-std-ipv6-64-rescue #828825 SMP Tue Jul 30 13:54:49 UTC 2019 x86_64
User: wh0f20bb (1057)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: //proc/thread-self/root/root/webmin-1.881/init/change_rl.cgi
#!/usr/bin/perl
# change_rl.cgi
# Switch to a different runlevel with the telinit command

require './init-lib.pl';
&ReadParse();
$access{'bootup'} == 1 || &error($text{'change_ecannot'});

&ui_print_header(undef, $text{'change_title'}, "");

$cmd = "telinit '$in{'level'}'";
print "<p>",&text('change_cmd', $in{'level'}, "<tt>$cmd</tt>"),"<p>\n";
&system_logged("$cmd </dev/null >/dev/null 2>&1 &");
&webmin_log("telinit", $in{'level'});

&ui_print_footer("", $text{'index_return'});