This website works better with JavaScript.
Home
Help
Sign In
heuzef
/
Allo-GG
Watch
3
Star
2
Fork
0
Code
Issues
9
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
... et rallumage si tout va bien
master
heuzef
6 years ago
parent
bf18e1782f
commit
842c07db1e
1 changed files
with
7 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-0
scripts/check_services.sh
+ 7
- 0
scripts/check_services.sh
View File
@@ -1,3 +1,7 @@
#!/bin/bash
# Allo-GG
# Routine de verification de l'etat des services
if apache2 -v | head -n 1 | grep -q 'Server version: Apache/[0-9]'
then
echo "[OK] Apache"
@@ -32,3 +36,6 @@ else
gpio -g write 18 1
exit
fi
# Tout va bien ^_^ Allumage de la LED d'etat.
gpio -g write 18 0
Write
Preview
Loading…
Cancel
Save