Set slave's hostname on startup.