8 stat_busy
"Starting python HTTP server"
9 if $
(ck_daemon phare
); then
11 nohup
/usr
/bin
/python
-m http.server
8080 &>> /var
/log
/phare.log
&
21 stat_busy
"Stopping python HTTP server"
22 ck_daemon phare || ps ax |
awk '/python.*http\.server 8080/ {print $1}' |
xargs kill
32 stat_busy
'Checking python HTTP server status'
36 echo "usage: $0 {start|stop|restart|status}"