Swap systemd command, as it was causing issues on Debian.
This commit is contained in:
parent
0baf60420a
commit
9712c250c5
|
@ -64,7 +64,7 @@ elif [[ -f /etc/debian_version ]]; then
|
||||||
which systemctl &>/dev/null
|
which systemctl &>/dev/null
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
install_systemd
|
install_systemd
|
||||||
deb-systemd-invoke restart telegraf.service
|
systemctl restart telegraf
|
||||||
else
|
else
|
||||||
# Assuming sysv
|
# Assuming sysv
|
||||||
install_init
|
install_init
|
||||||
|
|
Loading…
Reference in New Issue