Swap systemd command, as it was causing issues on Debian.

This commit is contained in:
Ross McDonald 2016-03-30 10:51:21 -05:00 committed by Michele Fadda
parent 0baf60420a
commit 9712c250c5
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ elif [[ -f /etc/debian_version ]]; then
which systemctl &>/dev/null
if [[ $? -eq 0 ]]; then
install_systemd
deb-systemd-invoke restart telegraf.service
systemctl restart telegraf
else
# Assuming sysv
install_init