Revert "use poll() instead of select()"

This is not how poll() works. Figure it out DUMBASS

This reverts commit b6b17d6fb9661033ee0079611cc5a2d09301e90f.
add cuckoo start/restart/stop scripts