linuxShortcuts/Services/logRestartError.sh

7 lines
140 B
Bash
Raw Permalink Normal View History

2023-06-23 13:10:17 +00:00
#!/bin/bash
/bin/systemctl status --full "$1" >> /home/bruno/.log_error
sleep 20
/bin/systemctl stop "$1"
sleep 3
/bin/systemctl start "$1"