summarylogtreecommitdiffstats
path: root/autobuild.sh
blob: 7f856725fd546917ef8197aa78db0349676347a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/bash
function block_for_change 
{
  inotifywait -r  -e modify,move,create,delete .
}


while block_for_change; do
  echo CHANGE
  sudo systemctl daemon-reload
  sudo systemctl stop fake-background-webcam@1.service  
  sudo systemctl start fake-background-webcam@1.service  
  sleep 1
  clear
  sudo systemctl status -n40 --no-pager  fake-background-webcam@1.service
  
done