set plugins permission before restarting service