mirror of
https://github.com/gSpotx2f/luci-app-internet-detector.git
synced 2025-12-06 19:46:51 +03:00
Minor fixes
This commit is contained in:
@@ -475,7 +475,7 @@ function InternetDetector:stopInstance(pidFile)
|
|||||||
end
|
end
|
||||||
if not ok then
|
if not ok then
|
||||||
io.stderr:write(string.format(
|
io.stderr:write(string.format(
|
||||||
'Process stop error: %s (%s). PID: "%s"\n', errMsg, errNum, pidValue))
|
'Process stopping error: %s (%s). PID: "%s"\n', errMsg, errNum, pidValue))
|
||||||
end
|
end
|
||||||
if errNum == 3 then
|
if errNum == 3 then
|
||||||
os.remove(pidFile)
|
os.remove(pidFile)
|
||||||
@@ -485,7 +485,7 @@ function InternetDetector:stopInstance(pidFile)
|
|||||||
end
|
end
|
||||||
if not pidValue then
|
if not pidValue then
|
||||||
io.stderr:write(
|
io.stderr:write(
|
||||||
string.format('PID file "%s" does not exist. %s not running?\n',
|
string.format('PID file "%s" does not exist. Is the %s not running?\n',
|
||||||
pidFile, self.appName))
|
pidFile, self.appName))
|
||||||
end
|
end
|
||||||
return retVal
|
return retVal
|
||||||
@@ -537,7 +537,7 @@ function InternetDetector:preRun()
|
|||||||
end
|
end
|
||||||
if stat.stat(self.pidFile) then
|
if stat.stat(self.pidFile) then
|
||||||
io.stderr:write(
|
io.stderr:write(
|
||||||
string.format('PID file "%s" already exist. %s already running?\n',
|
string.format('PID file "%s" exist. Is the %s already running?\n',
|
||||||
self.pidFile, self.appName))
|
self.pidFile, self.appName))
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user