#!/sbin/openrc-run
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
command="/usr/sbin/netatopd"
procname="netatopd"

depend() {
        before atop atopacct
}

start_pre() {
        modprobe netatop > /dev/null 2>&1
}

stop_post() {
        rmmod netatop > /dev/null 2>&1
}
