November 28, 20232 yr Is there a way to get notifications as UnRaid shuts down and also when it finishes its boot-up process? I'm using Pushover specifically though I imagine it's the same for all other notification agents.
November 28, 20232 yr Community Expert Nothing is built in, but you could add an entry to config/go file to log something on startup, and the config/stop file (you may have to create this file) to log something on shutdown. However the shutdown one may never get out in time before the shutdown completes.
November 28, 20232 yr Author Sorry for my ignorance, but what kind of text would I have to put in the config/go file to have it create a notification? Is there documentation for this somewhere? Thanks,
November 28, 20232 yr Community Expert 1 hour ago, dansushi said: Sorry for my ignorance, but what kind of text would I have to put in the config/go file to have it create a notification? Is there documentation for this somewhere? Thanks, There is the command line tool /usr/local/emhttp/webGui/scripts/notify. Run it with no parameters to see the options it takes.
December 1, 20232 yr Author On 11/28/2023 at 6:27 PM, itimpi said: There is the command line tool /usr/local/emhttp/webGui/scripts/notify. Run it with no parameters to see the options it takes. You're the best! It worked like a charm. For any others who want to do the same, here's what I've done below. I've added the following line to the /boot/config/go file: /usr/local/emhttp/webGui/scripts/notify -i "alert" -s "Bootup" -d "Unraid is fully booted up" and created a file at /boot/config/stop with the following code: #!/bin/bash /usr/local/emhttp/webGui/scripts/notify -i "alert" -s "Shutdown" -d "Unraid is shutting down" Despite itimpi's concern that the shutdown notification might not get sent, it in fact does work!
January 4, 20242 yr In case anyone else needs this, I was a little confused by the directions. To get it to work, the shutdown part should not be in the go file. You should create a new file in the /boot/config folder. So /boot/config/alert.bin with the code above. Doing this worked for me, it alerts me when a reboot or shutdown is initialized.
December 13, 20241 yr Community Expert On 1/4/2024 at 3:20 PM, sittingmongoose said: To get it to work, the shutdown part should not be in the go file. For this you would normally use the /boot/config/stop file (which may need creating). This is analogous to the 'go' file but is run during system shutdown.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.