improve systemd unit files

Reference: http://www.freedesktop.org/software/systemd/man/systemd.unit.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
add line number to exit on error message

This should make determining cause of error easier.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
improve systemv init script

Try to detect none RedHat system.  Also add sanity checks to stop, start,
and restart segments about already running (or not) processes.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>