use daemon and log params instead of shell background and output redirect

use daemon and log params instead of shell background and output redirect