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 some smart-pants decided to improve them 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.
So, is there something that can save me from this doomed changes?
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.