From 47056a1e27236dda49d7d63ddf793e88987ae62f Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Mon, 3 Mar 2008 16:51:09 +0000 Subject: Changed some coded values into variables instead. git-svn-id: svn://svn.alpinelinux.org/acf/openntpd/trunk@793 ab2d0c66-481e-0410-8bed-d214d4d58bed --- openntpd-model.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openntpd-model.lua') diff --git a/openntpd-model.lua b/openntpd-model.lua index e5d8163..2466769 100644 --- a/openntpd-model.lua +++ b/openntpd-model.lua @@ -41,7 +41,7 @@ local function config_content( f ) end local function get_version() - local cmd = "/sbin/apk_version -v -s openntpd | cut -d ' ' -f 1" + local cmd = "/sbin/apk_version -v -s " .. processname .. " | cut -d ' ' -f 1" local cmd_output = io.popen( cmd ) local cmd_output_result = cmd_output:read("*a") or "" cmd_output:close() @@ -214,7 +214,7 @@ function getstatus () status.status = cfe({ name="status", label="Program status", - value=procps.pidof("ntpd"), + value=procps.pidof(processname), }) status.date = config.date -- cgit v1.2.3