diff options
author | Mika Havela <mika.havela@gmail.com> | 2007-12-05 11:06:13 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2007-12-05 11:06:13 +0000 |
commit | 264a35ad5a5c5a22e3cb14190826d200c2b66ab2 (patch) | |
tree | 6a1f48a7e9bab621d97300e992cc360981e472d2 /openntpd-read-html.lsp | |
parent | 0fd9a5752c73ee508f89fd454ca372b97a6a9c95 (diff) | |
download | acf-openntpd-264a35ad5a5c5a22e3cb14190826d200c2b66ab2.tar.bz2 acf-openntpd-264a35ad5a5c5a22e3cb14190826d200c2b66ab2.tar.xz |
Working on start|stop of the service (start|stop doesn't work at this point... And I don't know why)
git-svn-id: svn://svn.alpinelinux.org/acf/openntpd/trunk@409 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'openntpd-read-html.lsp')
-rw-r--r-- | openntpd-read-html.lsp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/openntpd-read-html.lsp b/openntpd-read-html.lsp index 5c88cbc..08c5336 100644 --- a/openntpd-read-html.lsp +++ b/openntpd-read-html.lsp @@ -7,15 +7,15 @@ <dt>Program version</dt> <dd><? io.write(view.filecontent.version) ?></dd> -<dt>Process running or not</dt> +<dt>Process status</dt> <dd><? io.write(view.filecontent.status) ?></dd> <dt>Current time</dt> <dd><? io.write(view.filecontent.date) ?></dd> -<? --[[ ?> +<? ---[[ ?> <dt>TimeZone</dt> -<dd>xxx</dd> +<dd><? io.write(view.filecontent.timezone) ?></dd> <? --]] ?> <h2>NTPD SETTINGS</h2> @@ -64,8 +64,17 @@ for i = 1, table.maxn(view.filecontent.listen) do ?> <dd><input type="text" name="" value=""> <input type="submit" value="Add"></dd> +<h2>MANAGEMENT</h2> + +<dt>Start NTPD</dt> +<dd><form name="check" action="" method="POST"><input type=submit name="cmd" value="start" style="width:100px"></form><? if (view.startup.status) then io.write(view.startup.status) end ?></dd> + +<dt>Stop NTPD</dt> +<dd><form name="restart" action="" method="POST"><input type=submit name="cmd" value="stop" style="width:100px"></form><? if (view.shutdown.status) then io.write(view.shutdown.status) end ?></dd> + + <? ---[[ DEBUG INFORMATION +---[[ DEBUG INFORMATION require("debugs") io.write(debugs.variables(view)) --]] |