-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
98 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Docker: | ||
Logs: docker logs $ITEMNAME | ||
Restart: docker restart $ITEMNAME | ||
Start: docker start $ITEMNAME | ||
State: docker ps --filter status=running | grep $ITEMNAME | ||
Stop: docker stop $ITEMNAME | ||
Systemd: | ||
Logs: sudo systemctl status $ITEMNAME | ||
Restart: sudo systemctl restart $ITEMNAME | ||
Start: sudo systemctl start $ITEMNAME | ||
State: sudo systemctl | grep running | grep $ITEMNAME | ||
Stop: sudo systemctl stop $ITEMNAME | ||
VM: | ||
Logs: sudo journalctl -u libvirtd.service | ||
Restart: sudo virsh rebool $ITEMNAME | ||
Start: sudo virsh start $ITEMNAME | ||
State: sudo virsh list --state-running | grep $ITEMNAME | ||
Stop: sudo virsh shutdown $ITEMNAME | ||
ssh-Docker: | ||
Logs: ssh remote-host-ip -f docker logs $ITEMNAME | ||
Restart: ssh remote-host-ip -f docker restart $ITEMNAME | ||
Start: ssh remote-host-ip -f docker start $ITEMNAME | ||
State: ssh remote-host-ip -f docker ps --filter status=running | grep $ITEMNAME | ||
Stop: ssh remote-host-ip -f docker stop $ITEMNAME | ||
ssh-Systemd: | ||
Logs: ssh remote-host-ip -f sudo systemctl status $ITEMNAME | ||
Restart: ssh remote-host-ip -f sudo systemctl restart $ITEMNAME | ||
Start: ssh remote-host-ip -f sudo systemctl start $ITEMNAME | ||
State: ssh remote-host-ip -f sudo systemctl | grep running | grep $ITEMNAME | ||
Stop: ssh remote-host-ip -f systemctl stop $ITEMNAME |