sudo2 0.2.1

Detect if you are running as root, restart self with sudo or any other wrapper if needed or setup uid zero when running with the SUID flag set.
Documentation