Support ubuntu init function script