update all
This commit is contained in:
15
Librenms/librenms/files/etc/my_init.d/0_cron
Normal file
15
Librenms/librenms/files/etc/my_init.d/0_cron
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
LOCK_FILE=/var/lock/0_cron.lock
|
||||
|
||||
if [ -f "$LOCK_FILE" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -z "$POLLERS" ]; then
|
||||
POLLERS=8
|
||||
fi
|
||||
|
||||
sed -i "s/PLACEHOLDER_POLLERS/$POLLERS/g" /etc/cron.d/librenms
|
||||
|
||||
touch "$LOCK_FILE"
|
Reference in New Issue
Block a user