Fixing plugin to notify service and service to restart properly