call setsid during startup.