Compare commits
3 Commits
4d0123c4fe
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| e79941feb9 | |||
| 60f21a56d9 | |||
| 886fe1d9ac |
2
Python_module_1/first_1.py
Normal file
2
Python_module_1/first_1.py
Normal file
@@ -0,0 +1,2 @@
|
||||
#/home/liana/venv/it_school_python/bin/python
|
||||
print("Hello world, from me")
|
||||
18
check_service.sh
Executable file
18
check_service.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
SERVICE="docker"
|
||||
|
||||
echo "Verific serviciul: $SERVICE"
|
||||
|
||||
if systemctl is-active --quiet $SERVICE; then
|
||||
echo "Serviciul $SERVICE ruleaza"
|
||||
|
||||
else
|
||||
echo "Serviciul $SERVICE NU ruleaza"
|
||||
echo "Pornesc serviciul..."
|
||||
systemctl start $SERVICE
|
||||
echo "Serviciul a fost pornit"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user