mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-10 00:12:04 +02:00
script is now in ansible
This commit is contained in:
committed by
Data Backend account
parent
b1df0fe9f6
commit
fb97a23285
@@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
F=$1
|
||||
S=$2
|
||||
|
||||
t=`stat -c %y $F`
|
||||
|
||||
while true
|
||||
do
|
||||
sleep 5
|
||||
t1=`stat -c %y $F`
|
||||
|
||||
if [ "${t1}" != "${t}" ]
|
||||
then
|
||||
echo $F changed
|
||||
t=${t1}
|
||||
systemctl restart ${S}
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user