Ubic
Ubic copied to clipboard
Polymorphic service manager.
I've updated this to match the discussion.
Ubic is cool software, it belongs there.
I'm running on ubuntu (12.04.3) and have tried this via apt-get and also via cpanm to install ubic. I get the following after running sudo ubic-admin setup (with standard parameters)...
"ubic --fix-permissions" must re-chown all files in data, status and lock dirs to correct users.
`Ubic::Credentials::POSIX` doesn't work on FreeBSD. It has something to do with the order of setting effective and real uid (and also gids). I tried to fix it in 1.39, but...
Here's what `id` command shows on my LDAP-enabled Macbook: ``` uid=123123123(mmcleric) gid=444444444 groups=444444444,402(com.apple.sharepoint.group.1),12(everyone),33(_appstore),62(netaccounts),80(admin),98(_lpadmin),100(_lpoperator),204(_developer),401(com.apple.access_screensharing) ``` And here's how tests are failing: ``` mmcleric@macbook:~/coding/Ubic[master]$ prove -Ilib -v t/cmd.t t/cmd.t .. 1..8 Use...
We should implement `Ubic->install_service($name => $content)` method, so that those who install services from perl won't have to create files manually. (Feature request by @alnewkirk)
`Ubic::Daemon` can stop daemons gracefully by sending them SIGTERM first, and SIGKILL later. We need to make SIGTERM customizable, some daemons perform graceful stop using other signals. (Request from https://github.com/diegok).
One possible plan for refactoring: https://gist.github.com/b7a2ab5ae45df5847682 Alternatively, we can move all `Ubic::Daemon` code to `Daemon::Control` as patches and then port `Ubic::Daemon` to use `Daemon::Control`.
All command-line commands should support shell wildcards. `ubic-watchdog` already supports them, but unfortunately this code is implemented in `Ubic::Watchdog` instead of `Ubic::Cmd`.