groups-manager plugin is used to create or edit a group metadata file for a repository. This is often much easier than writing/editing the XML by hand.
needs-restarting looks through running processes and tries to detect those that use files from packages that have been updated after the given process started.