Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to get Notifications for boot-up and shutdown?

Featured Replies

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.

  • 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.

  • 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,

  • 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.

  • 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!

  • 1 month later...

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.

  • 11 months later...
  • 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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.