SinusBot / installer-linux

💾 SinusBot Installer for Debian, Ubuntu and CentOS - Installs the SinusBot with a single command.
https://sinusbot.github.io/installer/
Other
35 stars 34 forks source link

Improve systemd handling #38

Closed mxschmitt closed 6 years ago

mxschmitt commented 6 years ago

Use always systemd if available. Check for it via:

if [[ $(which systemctl) != "" ]]; then
  # use systemd
fi

store this in a global variable which will checked always when we need to decide for systemd or init.d.