-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically update apinger to dpinger #105
Conversation
in the Service Watchdog watch list. Forum: https://forum.pfsense.org/index.php?topic=109770.msg611158#msg611158 Doing it here means that people will get the automatic change as soon as they upgrade to 2.3 and the upgrade installs the Service Watchdog code from here. The other place it could be done is in upgrade_config.inc - but then that will not be distributed to them until pfSense 2.3.1 happens - rather too late.
// apinger became dpinger in pfSense 2.3 | ||
if ($svc['name'] == 'apinger') { | ||
$a_pwservices[$idx]['name'] = $svc['name'] = 'dpinger'; | ||
write_config(gettext("Service Watchdog updated service apinger to dpinger")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of this fix, but I don't like doing a write_config here. Even if it only triggers once, it's not an ideal place.
It could assume by apinger they meant dpinger without the save, perhaps fixing it permanently next time they make a save in the GUI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made PR #106 which has the simplified version without write_config() - take your pick.
when processing the Service Watchdog list. Leave the permanent update of the list for when the user next edits Service Watchdog settings. This is an alternate version of #105
when processing the Service Watchdog list. Leave the permanent update of the list for when the user next edits Service Watchdog settings. This is an alternate version of #105
Closing in favor of #106 |
Build now explicitly requires gmake per https://github.com/yaml/libyaml/releases/tag/0.2.5 the following changes have been made - #105 Allow question marks in plain scalars in flow collections - #186 Emitter: Don't output trailing space for empty scalar nodes - #185 Emitter: Output space after an alias mapping key - #187 Add -h and --flow (on|off|keep) to run-*-test-suite - #182 Remove unnecessary include and malloc - #177 Add specific files back to .gitignore - #181 Output error position in run-parser-test-suite.c - #191 A couple patches to improve test suite support - #179 Flow indicators can not be part of local or shorthand tags PR: 247043 Submitted by: daniel.engberg.lists@pyret.net
ChangeLog: General Removed DataTables from everywhere (see #107) Backup job report Fixed a bug while displaying compression ratio for canceled jobs (see #105) Client report Fixed SQL query error using custom datetime format in Client report page (see #106) Fixed bug(s) 105 [bug] - Division by zero with canceled jobs inBackup Job report 106 [bug] - SQL query error using custom datetime format in Client report page 107 [improvement] - Remove datatables dependency and related code 108 [bug] - Broken job status link in last period job status New feature(s) none
in the Service Watchdog watch list.
Forum: https://forum.pfsense.org/index.php?topic=109770.msg611158#msg611158
Doing it here means that people will get the automatic change as soon as they upgrade to 2.3 and the upgrade installs the Service Watchdog code from here. The other place it could be done is in upgrade_config.inc - but then that will not be distributed to them until pfSense 2.3.1 happens - rather too late.