Shell script as a daemon