Add startup script.
Add phd as service.