#!/usr/bin/sh
# Changes by NEC Corporation for the VE port, 2025
mode="$2"
node="$1"
case x"$mode" in
xonline)
  /bin/systemctl restart ve_sysstat@$node.service
  /bin/systemctl restart ve_sysstat-collect@$node.timer
  /bin/systemctl restart ve_sysstat-summary@$node.timer
  ;;
xoffline)
  /bin/systemctl stop ve_sysstat@$node.service
  /bin/systemctl stop ve_sysstat-collect@$node.timer
  /bin/systemctl stop ve_sysstat-summary@$node.timer
  ;;
esac
exit 0

