cmake: install dabba service script in /etc/init.d

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
cmake: fix /etc/init.d dabba script perms.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
init.d: add init info hdr in init.d dabba script.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
init.d: add needed reload action.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
init.d: add postrm script to remove dabba service.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
init.d: add proper default stop runlevels.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
init.d: write default pid file to /tmp/dabbad.pid.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: unlink pidfile on SIG(TERM|INT|QUIT).

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: remove unix socket on SIG(TERM|INT|QUIT).

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: pack all config element to a structure.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: cleanup pidfile/socket on normal exit.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: refactored function on exit.

Function registered by atexit(3) should not exit themselves to let the
other registered function a chance to run.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
deb: manage dabba user for daemon permissions.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
init.d: start dabbad server with the dabba user.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: write pid file to /var/run/dabba

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: create socket file in /var/run/dabba.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
init.d: use pidfile in /var/run/dabba.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
init.d: by /etc/init.d dabbad must be daemonized.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: give group pidfile read access.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: set 660 perm to unix socket file.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>