post_install()
{
 systemctl enable rsm-mqtt
 systemctl start rsm-mqtt
 return 0
}

pre_upgrade()
{
  systemctl stop rsm-mqtt
  return 0
}

post_upgrade()
{
  systemctl start rsm-mqtt
 return 0
}

pre_remove()
{
  systemctl stop rsm-mqtt
  systemctl disable rsm-mqtt
}

