updating configuration
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Listen for wake-on-lan from docker via pipe
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
User=nobody
|
||||
Group=nogroup
|
||||
ExecStart=/usr/bin/wakeonlan -f /dev/hass-wolpipe
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
sudo apt install -y wakeonlan
|
||||
sudo mkfifo /dev/hass-wolpipe
|
||||
|
||||
sudo chmod 644 /dev/hass-wolpipe
|
||||
sudo cp -R docker-wol.service /etc/systemd/system/docker-wol.service
|
||||
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl start docker-wol
|
||||
sudo systemctl enable docker-wol
|
||||
Reference in New Issue
Block a user