Fix to make it run using systemd; added 'groups' function to SOS service