-
Notifications
You must be signed in to change notification settings - Fork 274
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
Faster start #3213
Faster start #3213
Conversation
95067cd
to
972da8c
Compare
@@ -173,6 +173,7 @@ sub service_exists { | |||
my (@services) = @_; | |||
|
|||
foreach my $service (@services) { | |||
next if ($service eq 'pf'); |
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.
Does this remove the checkup when starting all PF services ?
If so, it doesn't sound that good since some people may miss out on major issues
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.
No it doesn't , here a sample when i restart pf:
fabian81:/usr/local/pf$ bin/pfcmd service pf restart
service|command
api-frontend|Service enabled
etcd|Service enabled
fingerbank-collector|Service enabled
haproxy-db|Service enabled
haproxy-portal|Service enabled
httpd.aaa|Service enabled
httpd.admin|Service enabled
httpd.collector|Service disabled
httpd.dispatcher|Service enabled
httpd.parking|Service enabled
httpd.portal|Service enabled
httpd.proxy|Service disabled
httpd.webservices|Service enabled
iptables|Service enabled
keepalived|Service enabled
netdata|Service enabled
pfbandwidthd|Service disabled
pfdetect|Service disabled
pfdhcp|Service enabled
pfdhcplistener|Service enabled
pfdns|Service enabled
pffilter|Service enabled
pfipset|Service enabled
pfmon|Service enabled
pfperl-api|Service enabled
pfqueue|Service enabled
pfsso|Service enabled
pfstats|Service enabled
radiusd-eduroam|Service enabled
radiusd-acct|Service enabled
radiusd-auth|Service enabled
radiusd-load_balancer|Service enabled
radiusd-cli|Service enabled
radsniff|Service enabled
redis_ntlm_cache|Service disabled
redis_queue|Service enabled
routes|Service disabled
snmptrapd|Service disabled
tc|Service enabled
winbindd|Service enabled
service|command
haproxy-db|stop
pf|stop
Could not write namespace config::PfDefault to L2 cache !
....
Could not write namespace resource::unified_api_system_user to L2 cache !
haproxy-db|start
Checking configuration sanity...
WARNING - template directory '/usr/local/pf/html/captive-portal/profile-templates/Wire' for profile Wire does not exist using default templates
WARNING - template directory '/usr/local/pf/html/captive-portal/profile-templates/Dot1x' for profile Dot1x does not exist using default templates
pf|start
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.
As they said in France:
"Superbe! maintenant allons chercher une baguette chez le boulanger"
86ad08f
to
6d1a4a9
Compare
Rebased, ready for the last review |
Description
Up to 30s start faster.
Use the perl module to generate the configuration instead of pfcmd
Impacts
Systemd script
Delete branch after merge
YES
NEWS file entries
Enhancements