web: Create a function to show the service status

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-03-23 18:42:13 +01:00
parent b5e6a2c56f
commit 0b16963484
15 changed files with 217 additions and 3 deletions

View File

@@ -5247,6 +5247,15 @@ END
$activeonrun = "disabled='disabled'";
}
&Header::openbox('100%', 'LEFT', $Lang::tr{'global settings'});
# Show the service status
&Header::ServiceStatus({
$Lang::tr{'ovpn roadwarrior server'} => {
"process" => "openvpn",
"pidfile" => "/var/run/openvpn.pid",
}
});
print <<END;
<table width='100%' border='0'>
<form method='post'>