Made pid get written as string and added a rc.d script