1748953105
This commit is contained in:
@@ -116,6 +116,8 @@ Upload ~/Garfana-Visualization.json to create dashboard
|
||||
* data source
|
||||
* fix
|
||||
* Raspberry OS Lite
|
||||
* chrony_statistics.sh
|
||||
* services.h
|
||||
|
||||
**known bugs**
|
||||
doubling of appending to /boot/firmaware/config.txt and /etc/modules when running intstaller3.sh
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
# status of services
|
||||
bash ./status_services.sh
|
||||
bash ./services.sh status
|
||||
|
||||
# test pps
|
||||
echo "Testing PPS"
|
||||
|
||||
+4
-4
@@ -24,7 +24,7 @@ telegraf_new="$1/telegraf.conf"
|
||||
udev_new="$1/50-tty.rules"
|
||||
|
||||
# stop da services
|
||||
bash ./stop_services.sh
|
||||
bash ./services.sh stop
|
||||
|
||||
# backup conf
|
||||
bash ./dump_configs.sh
|
||||
@@ -38,8 +38,8 @@ sudo bash -c "cat $influxdb_new > $influxdb"
|
||||
sudo bash -c "cat $telegraf_new > $telegraf"
|
||||
sudo bash -c "cat $udev_new > $udev_rule"
|
||||
|
||||
# restart da services
|
||||
bash ./start_services.sh
|
||||
# start da services
|
||||
bash ./services.sh start
|
||||
|
||||
# show services status
|
||||
# bash ./status_services.sh
|
||||
# bash ./services.sh status
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
echo "Restarting Services"
|
||||
sudo systemctl restart gpsd chrony influxdb telegraf grafana-server syslog-ng
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ -z $1 ]; then
|
||||
echo "Usage: bash services.sh stop|start|restart|status|enable"
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "Running $1 on Services"
|
||||
sudo systemctl $1 gpsd chrony influxdb telegraf grafana-server syslog-ng
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
echo "Starting Services"
|
||||
sudo systemctl start gpsd chrony influxdb telegraf grafana-server syslog-ng
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
echo "Services Status"
|
||||
sudo systemctl status gpsd chrony influxdb telegraf grafana-server syslog-ng
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
echo "Stopping Services"
|
||||
sudo systemctl stop gpsd chrony influxdb telegraf grafana-server syslog-ng
|
||||
Reference in New Issue
Block a user