changing root directory to dist.
adding initd script