This is not the place to ask that, but I googled it for you and found this [Stackoverflow answer](https://unix.stackexchange.com/questions/18209/detect-init-system-using-the-shell) that might help.
- How to find out if a system uses SysV, Upstart or Systemd ini... thanhan
- How to find out if a system uses SysV, Upstart or System... shirleyquirk
