-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflock_rebuild.sh
executable file
·50 lines (47 loc) · 1.62 KB
/
flock_rebuild.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
#############################################
# CHECK IF FLOCK FILES EXIST, IF NOT RECREATE
#############################################
LOCKS=( "/var/run/dpx_assess1.lock"
"/var/run/dpx_assess2.lock"
"/var/run/dpx_assess3.lock"
"/var/run/dpx_assess4.lock"
"/var/run/dpx_assess5.lock"
"/var/run/dpx_assess6.lock"
"/var/run/dpx_assess7.lock"
"/var/run/dpx_rawcook1.lock"
"/var/run/dpx_rawcook2.lock"
"/var/run/dpx_rawcook3.lock"
"/var/run/dpx_rawcook4.lock"
"/var/run/dpx_rawcook5.lock"
"/var/run/dpx_rawcook6.lock"
"/var/run/dpx_rawcook7.lock"
"/var/run/dpx_post_rawcook1.lock"
"/var/run/dpx_post_rawcook2.lock"
"/var/run/dpx_post_rawcook3.lock"
"/var/run/dpx_post_rawcook4.lock"
"/var/run/dpx_post_rawcook5.lock"
"/var/run/dpx_post_rawcook6.lock"
"/var/run/dpx_post_rawcook7.lock"
"/var/run/dpx_tar_script1.lock"
"/var/run/dpx_tar_script2.lock"
"/var/run/dpx_tar_script3.lock"
"/var/run/dpx_tar_script4.lock"
"/var/run/dpx_tar_script5.lock"
"/var/run/dpx_tar_script6.lock"
"/var/run/dpx_tar_script7.lock"
"/var/run/dpx_check_script1.lock"
"/var/run/dpx_check_script2.lock"
"/var/run/dpx_check_script3.lock"
"/var/run/dpx_check_script4.lock"
"/var/run/dpx_check_script5.lock"
"/var/run/dpx_check_script6.lock"
"/var/run/dpx_check_script7.lock"
)
for lock in "${LOCKS[@]}" ; do
if [[ -f "$lock" ]];then
true
else
sudo touch "$lock"
fi
done