Isso funciona para mim como /etc/systemd/system/netstat.service :
[Unit]
Description=Save interface stats on shutdown
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/true
ExecStop=/bin/sh -c '{ date; ip -s link; } >>/root/ipstat.log'
[Install]
WantedBy=multi-user.target
Ativar com systemctl enable netstat . Isso não lhe dará estatísticas precisas, porque as interfaces de rede ainda podem ser usadas durante o desligamento, mas isso pode ser aceitável para você.