-
Notifications
You must be signed in to change notification settings - Fork 0
/
startApi.sh
executable file
·31 lines (23 loc) · 1.01 KB
/
startApi.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
#!/bin/bash
# This is going to have to get made into a systemd control
# right now it is fine for debug and testing, but not prod ready
# All use php-cli ini values. Keep in mind different than php web ini values
# Start debug API system Slim4 (really early days of dev)
#nohup php -S 0.0.0.0:8002 -t public 2>&1 >> ./logs/app.log &
# Start housekeeping watchdog
# Converted to systemd and stable as of 03-16-2024
#pushd daemon/housekeepingPoller/
# nohup ./housekeepingPoller.php -i 60 -s start 2>&1 >/dev/null &
#popd
# Future, housekeeping will control daemons as part of its duties
# Start general daemon controls
pushd daemon/Poller/
# nohup ./genericPoller.php -i 300 -t alive -s start 2>&1 >/dev/null &
nohup ./genericPoller.php -i 300 -t nrpe -s start 2>&1 >/dev/null &
sleep 1
nohup ./genericPoller.php -i 300 -t snmp -s start 2>&1 >/dev/null &
sleep 1
nohup ./genericPoller.php -i 60 -t alive -s start 2>&1 >/dev/null &
sleep 1
nohup ./genericPoller.php -i 300 -t shell -s start 2>&1 >/dev/null &
popd