Efimov effect for two particles on a semi-infinite line