sysvinit scripts: address some bugs

'service cgmanager start;  service cgmanager start;' caused cgproxy
to start.  Check whether cgmanager is already running to prevent that.

status was not checking the PIDFILE.  This could cause trouble when
running containers.

Split out restart from start, and make it actuall stop cgmanager.

If start fails, return an error code.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Merge branch 'master' of git://github.com/cgmanager/cgmanager
sysvinit: use --retry with --stop

rather than sleep

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
don't issue a scary warning about premounted cgroups, use debug

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
cgproxy.init: don't scare users about unneeded cgproxy

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
sysvinit: import changes from debian package

As they went through quite a few review cycles

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Add systemd jobs

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
add systemd/config to ac_config_files

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
cgm.c: handle non-recursive remove requests

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
tests: convert to using the cgm program

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
release 0.30

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
fix typo in systemd makefile

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Show controller+cgroup if compute_pid_cgroup() fails to aid client debug.
Merge pull request #15 from jamesodhunt/enhance-debug

Show controller+cgroup if compute_pid_cgroup() fails to aid client debug...
print error at all get_pid_cgroup failures

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
compute_pid_cgroup debug: print out cgroup only if relevant

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
frontend.c: fix kick_fd_client failures

If kick_fd_client fails, it already does a nih_dbus_error_raise_printf,
so don't have the caller do one too.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
fix a missing string debug argument

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Add a test (not run by default) to check that scms work

Build it by doing

make tests

then run it with

./tests/scmtest

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
nstest: test cgmanager access from non-init pidns

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>