Lines 90-101
Link Here
|
90 |
|
90 |
|
91 |
hostid_start() |
91 |
hostid_start() |
92 |
{ |
92 |
{ |
93 |
# If ${hostid_file} already exists, we take UUID from there. |
93 |
# If ${hostid_file} already exists, we take UUID from there. We use |
94 |
if [ -r ${hostid_file} ]; then |
94 |
# a -f rather than a -r check as the histid_file may in fact be |
|
|
95 |
# a symbolic link. |
96 |
# |
97 |
if [ -f ${hostid_file} ]; then |
95 |
hostid_set `cat ${hostid_file}` |
98 |
hostid_set `cat ${hostid_file}` |
96 |
else |
99 |
else |
97 |
# No hostid file, generate UUID. |
100 |
# No hostid file, generate UUID. |
98 |
hostid_generate |
101 |
hostid_reset |
99 |
fi |
102 |
fi |
100 |
} |
103 |
} |