mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:29:26 +08:00
up
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
<p onclick="pluginLogs('sys-opt','','sec_run_log', 20);">安全日志</p>
|
||||
<p onclick="pluginLogs('sys-opt','','msg_run_log', 20);">常用日志</p>
|
||||
<p onclick="pluginLogs('sys-opt','','cron_run_log', 20);">任务日志</p>
|
||||
<p onclick="pluginRollingLogs('sys-opt','','sys_run_log', 20);">系统日志</p>
|
||||
<p onclick="pRead()">说明</p>
|
||||
</div>
|
||||
<div class="bt-w-con pd15">
|
||||
|
||||
@@ -114,6 +114,10 @@ def msgRunLog():
|
||||
def cronRunLog():
|
||||
return '/var/log/cron'
|
||||
|
||||
|
||||
def systemRunLog():
|
||||
return '/var/log/syslog'
|
||||
|
||||
if __name__ == "__main__":
|
||||
func = sys.argv[1]
|
||||
if func == 'status':
|
||||
@@ -138,5 +142,7 @@ if __name__ == "__main__":
|
||||
print(msgRunLog())
|
||||
elif func == 'cron_run_log':
|
||||
print(cronRunLog())
|
||||
elif func == 'sys_run_log':
|
||||
print(systemRunLog())
|
||||
else:
|
||||
print('err')
|
||||
|
||||
Reference in New Issue
Block a user