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.

[PLUGIN] WOL for Services

Featured Replies

  • Author
12 minutes ago, Orkopaede said:

Not necessarily, but if there was a choice, it would make things even more convenient. For my specific case, wg0 or, more precisely, wg1 would be enough.

Does not wg0 show as an available interface in the settings page?

  • Replies 66
  • Views 16.3k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Open terminal.   cd /boot/extra if does not exist mkdir /boot/extra then cd to it. Once it is downloaded into extra will be loaded each reboot   root@computenode:/boot/extra# wget

  • Unraid uses the php api. I can look at managed save as a option which is hibernate to disk   libvirt_domain_suspend libvirt_domain_suspend($res) [Since version 0.4.1(-1)] Func

  • Hi I did a quick test on my test server. I dont use HA except for testing this is what i have added to my yaml.   wake_on_lan: switch: - platform: wake_on_lan mac: 52:54:00:DA:18:68

Posted Images

4 minutes ago, SimonF said:

Does not wg0 show as an available interface in the settings page?

 

Unfortunately not, I have two active tunnels, could that be a problem?

 

grafik.thumb.png.39de10de9c582b7ddeac5fe3cf74a83d.png

 

grafik.png.bd1293e26738381562f07392d89caab6.png

  • Author
13 minutes ago, Orkopaede said:

 

Unfortunately not, I have two active tunnels, could that be a problem?

 

grafik.thumb.png.39de10de9c582b7ddeac5fe3cf74a83d.png

 

grafik.png.bd1293e26738381562f07392d89caab6.png

You can update the value in wol.cfg and then do

 

/usr/local/emhttp/plugins/WOL4Services/scripts/WOL_action load

 

Which will restart the process with new interface. Will look to add more interfaces in the gui.

12 minutes ago, SimonF said:

You can update the value in wol.cfg and then do

 

/usr/local/emhttp/plugins/WOL4Services/scripts/WOL_action load

 

Which will restart the process with new interface. Will look to add more interfaces in the gui.

Great, it worked on the first try. Thank you very much for your help!

  • 4 months later...

Can this plugin be used to send a WOL packet to another physical PC on the network? I've installed it and am trying to use it via the CLI (will eventually build a scheduled script using the UserScripts plugin) to wake up another Unraid server of mine. If this is possible, can someone give me an example of the CLI syntax to use?

  • Author
53 minutes ago, poshmick907ak said:

Can this plugin be used to send a WOL packet to another physical PC on the network? I've installed it and am trying to use it via the CLI (will eventually build a scheduled script using the UserScripts plugin) to wake up another Unraid server of mine. If this is possible, can someone give me an example of the CLI syntax to use?

No it does not, look at the pinned post at top for where to get a command package.

36 minutes ago, SimonF said:

No it does not, look at the pinned post at top for where to get a command package.

Thank you, I did see that and the steps make sense. I've just never installed a package manually in Unraid like that before and wanted to find out if there are any stability or security risks I should know about first. If this is legitimate (seems to obviously be based on this thread), why isn't Etherwake just available as a plugin through the Unraid app store? Is there some standard it doesn't meet or compatibility problems with current Unraid releases?

Edited by poshmick907ak

  • Author
47 minutes ago, poshmick907ak said:

Thank you, I did see that and the steps make sense. I've just never installed a package manually in Unraid like that before and wanted to find out if there are any stability or security risks I should know about first. If this is legitimate (seems to obviously be based on this thread), why isn't Etherwake just available as a plugin through the Unraid app store? Is there some standard it doesn't meet or compatibility problems with current Unraid releases?

It was part of a WOL plugin the dev is no longer supporting to send magic packets from a webpage. You can find any slackware current package an install. This was just the package used buy the plugin. Mine is more for receiving packets to start VMs/Containers.

 

I may look to add the package as part of my plugin.

1 hour ago, SimonF said:

It was part of a WOL plugin the dev is no longer supporting to send magic packets from a webpage. You can find any slackware current package an install. This was just the package used buy the plugin. Mine is more for receiving packets to start VMs/Containers.

 

I may look to add the package as part of my plugin.

Got it, thanks for that update. If you do decide to roll it into your plugin that'd be amazing. I'll plan to do the manual install in the interim, it'd just be so much cleaner if this functionality was available available through a maintained plugin.

  • 1 month later...

Hi Simon, nice that you kept on the development of this function - thanks a lot!

My problem is that I can't get it to run; I have several vlans configured on br0, plugin-setup to listen on br0 (only choice), setup/enabled under tools, and trying to send the MagicPacket from my router (pfsense 2.7.2) from the same vlan-interface, but nothing happens. AS for the VM itself, due to the redhat virtio drivers, theres no wake/wol property

I have a physical nic passed-through to that vm, but would love to have it for other machines as well, as all my pcie-slots are already drilled out (x1>"x16") and populated🙃

// SOLVED *partially (working)
So I couldn't find anything in the UEFI Firmware settings, and the passed-nic didn't even show up.

 

- I tried my luck with HomeAssistant as I already have it running and it just works - the HAOS VM sits on the same br0.30 (VL30)
- Tried it with my steamlink on the same VL30 and again, it just works :D

Still can't get my head around why my router/pf - the central point of everything - can't do it neither on the management nor same-vlan interface, but even a physical machine/steamlink will do O.o

Edited by Hank Moody

  • 1 month later...

Not sure what's wrong, but is simply does not work at all.
First of all, I installed it in APPS.
It has: Status:Stopped

I've sent WOL both to the VM and eth0 which is configured as listening. Not working.

  • Author
5 minutes ago, CobraPL said:

Not sure what's wrong, but is simply does not work at all.
First of all, I installed it in APPS.
It has: Status:Stopped

I've sent WOL both to the VM and eth0 which is configured as listening. Not working.

If the services is enabled should saying running.

what is the output of

cat /var/log/syslog | grep -i wol

Hi, may a question regarding wol VM (mac) also waking up Host (different mac).

Scenario, Gaming Mashine, Unraid Host using s3 sleep hosting a Gaming VM ...

now, app like moonlight can send wol to wakeup the VM (working as long the host is running), but that of course doesnt wakeup the host before ... so the question is (and i have no idea if ...) can the physical NIC listen on 2 different mac's (i guess that would be possible) but also then, would a workflow like this even be possible ?

1/ mac VM received

2/ wakeup host (wait N seconds) -- if it was already on, skip

3/ start VM

i know ... ;) keep the Server running ;)

  • Author
20 hours ago, alturismo said:

Hi, may a question regarding wol VM (mac) also waking up Host (different mac).

Scenario, Gaming Mashine, Unraid Host using s3 sleep hosting a Gaming VM ...

now, app like moonlight can send wol to wakeup the VM (working as long the host is running), but that of course doesnt wakeup the host before ... so the question is (and i have no idea if ...) can the physical NIC listen on 2 different mac's (i guess that would be possible) but also then, would a workflow like this even be possible ?

1/ mac VM received

2/ wakeup host (wait N seconds) -- if it was already on, skip

3/ start VM

i know ... ;) keep the Server running ;)

You could put the Host mac address in the user defined mac for the VM. But not sure how you would get moonlight to send it again?

Or in the S3 plugin there is a post wake script you could run a virsh command to start/resume?

image.png

Edited by SimonF

4 hours ago, SimonF said:

Or in the S3 plugin there is a post wake script you could run a virsh command to start/resume?

yep, but as the Server is also a Backup Server ... ;) had this idea already but that would always wakeup the VM (also for replicate / backup jobs).

thanks for looking, but this will be more complex so lets live with HA click to wakeup ;)

  • 7 months later...
On 3/9/2024 at 9:23 AM, SimonF said:

This was a function being developed for the next release but was decided best to be a plugin to start with to allow better interations for changes. Currently this is a beta release.

 

the is an existing plugin called virtwold this expands on it to include dockers and LXC.

 

I am in the process to complete changes to make it work fully under 6.12 but currently the search function and help text don't work or don't exist.

 

Two pages are created, first is the settings.

 

image.png

 

Within the settings you can specify which servers are enabled. The interface name needs to be a physical NIC. By default shutdown actions are disabled.

 

The second page is in tools. It allows you to specify the actions allowed. To be able to start dockers you need to have a user defined mac address as one is not assigned until the docker starts and changes.

 

Values for the enabled field are image.png

 

image.png

 

 

Awesome, it works great. Thanks, Simon!
Is there a command line I can do a restart?

/usr/local/emhttp/plugins/WOL4Services/include/WOLrun.php "xx:xx:xx:xx:xx:xx"
etherwake xx:xx:xx:xx:xx:xx

  • Author
8 hours ago, winglam said:

Awesome, it works great. Thanks, Simon!
Is there a command line I can do a restart?

/usr/local/emhttp/plugins/WOL4Services/include/WOLrun.php "xx:xx:xx:xx:xx:xx"
etherwake xx:xx:xx:xx:xx:xx

What type of restart do you mean. There is an option in the settings for restart, but it is either restart or stop due to the nature of how WOL works with a broadcast packet it can only toggle to between states.

Each of the operations have a restart command you could use from the command line. LXC you have to stop and start, but docker and VMs have restart/reboot commands.

i.e.

root@computenode:~# virsh help reboot

NAME

reboot - reboot a domain

SYNOPSIS

reboot <domain> [<mode>]

DESCRIPTION

Run a reboot command in the target domain.

OPTIONS

[--domain] <string> domain name, id or uuid

[--mode] <string> shutdown mode: acpi|agent|initctl|signal|paravirt

root@computenode:~#

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.