Skip to content
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

Feature/service refactor #104

Merged
merged 5 commits into from Dec 2, 2013
Merged

Feature/service refactor #104

merged 5 commits into from Dec 2, 2013

Conversation

jrouzierinverse
Copy link
Member

Integration of pf::services::manager framework into pfcmd and the webgui.

Team I created a new branch feature/service-refactor for the new and improved pfcmd service command.

Notable changes

  • each service has it's own service manager perl module
  • pfcmd pf watch - Will now only restart service that are down
  • pfcmd stop|start will show if the service was already stopped or started
  • pfcmd service is now in color!

Questions

  • Should we have a configuration setting that force an entire restart of pf if any service is down when the watch is done.
    servicewatch.restart_type=soft|hard
  • Is there anything else we should add since we are in the code at the moment?


has '+name' => (default => sub { 'memcached' } );

has '+launcher' => (default => sub { "%1\$s -d -p 11211 -u pf -m 64 -c 1024 -P $install_dir/var/run/memcached.pid"});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments...
"Random" values are useless even if needed when undocumented

@dwlfrth
Copy link
Contributor

dwlfrth commented Sep 30, 2013

Can you document (pf::services::manager will probably be the best place) all possibles method (mainly for overloading purposes but also to have a good idea of what which method is doing) and the startup/stop flow.

@dwlfrth
Copy link
Contributor

dwlfrth commented Sep 30, 2013

What is the purpose of pf::services::manager::roles::pf_conf_service_managed ?

@jrouzierinverse
Copy link
Member Author

pf::services:: manager is pretty much documented.

@jrouzierinverse jrouzierinverse merged commit 3e13725 into devel Dec 2, 2013
@jrouzierinverse jrouzierinverse deleted the feature/service-refactor branch December 16, 2013 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants