Replacing sys.exit calls with integer values that coorispond to /etc/init.d/skeleton on Ubuntu.