Move where netdata is started and stopped in rc.local*.

This commit is contained in:
Darren 'Tadgy' Austin 2021-02-02 10:00:56 +00:00
commit a76db920e0
2 changed files with 6 additions and 6 deletions

View file

@ -17,9 +17,6 @@
/etc/rc.d/rc.libvirt stop
}
# Shut down netdata.
[ -x /etc/rc.d/rc.netdata ] && /etc/rc.d/rc.netdata stop
# Stop the rtorrent instances started at boot.
grep "^seeder:" /etc/passwd >/dev/null 2>&1 && {
pkill -INT -u seeder '^rtorrent .*$'
@ -57,6 +54,9 @@ grep "^seeder:" /etc/passwd >/dev/null 2>&1 && {
# Stop fail2ban.
[ -x /etc/rc.d/rc.fail2ban ] && /etc/rc.d/rc.fail2ban stop
# Stop netdata.
[ -x /etc/rc.d/rc.netdata ] && /etc/rc.d/rc.netdata stop
# Stop the vnstat daemon.
[ -x /etc/rc.d/rc.vnstat ] && /etc/rc.d/rc.vnstat stop