As we dont want to have a login shell for the ejabberd user, the
call to su fails. Switching to sudo internally, requires some
more work as the quoting needs to be fixed in all the places.
For now only run as user ejabberd. That way we only call bash and
bypass the broken code.
This was especially annoying as the execs didnt have any error
handling and no output for the user.
- merge our service file with the template from upstream.
all the commandline options specificed were just reflecting
defaults. if an user wants to override those, it should be done
in /etc/ejabberd/ejabberdctl.cfg and not on the commandline.
- also adds support for the reload target
OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/ejabberd?expand=0&rev=111