WORKAN WOOOO

This commit is contained in:
2025-10-29 23:09:50 -06:00
parent b11523e246
commit 572075c1f6
6 changed files with 126 additions and 28 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
# set -e
# get real user
if [ ! -z $SUDO_USER ]; then
username=$SUDO_USER
else
username=$USER
fi
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
echo "services complete" >> /home/$username/status.txt