Project

General

Profile

Bug #2157

Network Time App

Added by bigfoot65 about 3 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
09/16/2016
Due date:
% Done:

0%


Description

The Amahi Network Time app modifies the ntpd.service file to add the following after $OPTIONS:

-p /var/run/ntpd.pid

When the OS updates ntpd, it overwrites the ntpd.service file, losing this modification.

Monit is used to monitor this application, so when the modification is lost there is no pid file generated. The result is monit thinks the app is stopped and repeatedly tries to restart it. This also generates numerous monit.log file entries.

On possible solution would be to beef up the server feature (monit) in Amahi to include an option to show if monitoring is enabled or disabled. There is text that can be added to the ntpd.conf file to see the problem with starting and disable monitoring of the service. For example, adding the following would disable monitoring:

if 3 restarts within 5 cycles then unmonitor

Adding this capability would strengthen the watchdog feature and minimize these types of issues. The Monit Service Manager application currently has this capability.

The alternative and quicker solution is to not use the server feature for the ntpd app.

History

#1 Updated by bigfoot65 about 3 years ago

One other alternative is to uninstall and reinstall the app. That should restore the customized service file to use a PID file.

Also available in: Atom