From 898b9a025eea21e5d203cb8da049a52c09fe104c Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Sun, 11 Feb 2024 16:24:31 -0800 Subject: [PATCH] Document graceful shutdown process for fighter --- homelab/fighter/SHUTDOWN.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 homelab/fighter/SHUTDOWN.md diff --git a/homelab/fighter/SHUTDOWN.md b/homelab/fighter/SHUTDOWN.md new file mode 100644 index 00000000..492fc5af --- /dev/null +++ b/homelab/fighter/SHUTDOWN.md @@ -0,0 +1,7 @@ +# Gracefully shut down all services and then the system + +1. Shut down all docker stacks. Run `for stack in /home/admin/homelab/fighter/config/*; do cd $stack && docker-compose down; done`. +2. Unmount the iSCSI device. Run `sudo umount /mnt/iscsi`. +3. Log out of the iSCSI session. Run `sudo iscsiadm --mode node --targetname "iqn.2020-03.net.jafner:fighter" --portal "192.168.1.10:3260" --logout`. +4. Unmount the SMB shares. Run `for mount in media calibre-web torrenting av; do sudo umount /mnt/nas/$mount; done`. This command may need updating for the specific SMB shares currently mounted. +5. Shut down the system. Run `sudo shutdown now`. \ No newline at end of file