api init.d scripts
handle ctrl+c and kill sign