summaryrefslogtreecommitdiffstats
path: root/squid-basic-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-05-06 07:45:08 +0000
committerMika Havela <mika.havela@gmail.com>2008-05-06 07:45:08 +0000
commit26a72bf1519a8933e3fabc884a024e72947008e0 (patch)
treeb669c81220f0885a37faf8acf3ddb7c02bd8fc19 /squid-basic-html.lsp
parent1b8bad95d1204e4f3f90bfe4f212870d09c44918 (diff)
downloadacf-squid-26a72bf1519a8933e3fabc884a024e72947008e0.tar.bz2
acf-squid-26a72bf1519a8933e3fabc884a024e72947008e0.tar.xz
Changing start/stop/restart process to show stderr to the user (as for all other ACF's)
git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@1103 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'squid-basic-html.lsp')
-rw-r--r--squid-basic-html.lsp3
1 files changed, 1 insertions, 2 deletions
diff --git a/squid-basic-html.lsp b/squid-basic-html.lsp
index ab96ea8..8d1cd43 100644
--- a/squid-basic-html.lsp
+++ b/squid-basic-html.lsp
@@ -109,13 +109,12 @@ until you restart the service.</DD>
</form>
<h1>MANAGEMENT</h1>
-
<form action="" method="POST">
<dl>
<DT>Daemon control</DT><dd><input class="submit" type="submit" name="srvcmd" value="start" <? io.write( srv1fill ) ?>>
<input class="submit" type="submit" name="srvcmd" value="stop" <? io.write( srv2fill ) ?>>
<input class="submit" type="submit" name="srvcmd" value="restart" <? io.write( srv2fill ) ?>>
-<? if #service.message > 0 then ?><pre><? io.write( service.message ) ?></pre><? end ?></dd>
+<? if (service.message) and (service.message.descr) and (#service.message.descr > 0) then ?><pre><? io.write( service.message.descr ) ?></pre><? end ?></dd>
</dl>
</form>