javascript - how to determine if gulp watch is running -


i run gulp on server in background running

gulp & 

but fail down. mi question is: there command gulp ask if running.

gulp status 

thanks

there nothing special in gulp limit running multiple processes or alert running gulp process.

use regular unix techniques check if process running. use supervisor supervisord or runit automatically restart processes.

#the program pidof set variable $? either #1 or 0 in bash depending on if finds process #with name.  print out matching #process ids command line pidof gulp echo $?  #1 if there no process called gulp          #0 if there process called gulp if pidof gulp;     echo 'gulp alive'; else    echo 'we need support on here!'    ./node_modules/.bin/gulp watch &    sleep 3 fi 

Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -