forked from andrewjfreyer/monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
time
23 lines (21 loc) · 784 Bytes
/
time
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# ----------------------------------------------------------------------------------------
# GENERAL INFORMATION
# ----------------------------------------------------------------------------------------
#
# Written by Andrew J Freyer
# GNU General Public License
# http://github.com/andrewjfreyer/monitor
#
# TIME BASED TRIGGERS
#
# ----------------------------------------------------------------------------------------
# ----------------------------------------------------------------------------------------
# PERIODIC TRIGGER TO MAIN LOOP
# ----------------------------------------------------------------------------------------
beacon_database_expiration_trigger () {
while : ; do
sleep "$(( PREF_BEACON_EXPIRATION / 12 ))"
echo "BEXP" > main_pipe
done
}