Until recently there was a simple and effective way to start/stop/restart services:
service nginx start|stop|restart
This worked perfectly for so many years,... until the distribution switched to systemd and now I am facing with Debian/Ubuntu systems where the
service script does nothing (as I am supposed to use the stuff like
systemctl start nginx.service (much much longer, no auto-complete working,...)
My question refers specially to Debian and Ubuntu but it would also be helpful to cover CentOS/RedHat distros too.
In case it was not clear, I am looking for a consistent way to deal with those, one that would work on Debian 7.x, 8.x, latest Ubuntu LTS and non-LTS.
PS. Outside the scope of this specific question, but extra kudos granted if the solution would also cover the enable and disable part for the services.