https://github.com/mboljen/wakeup-host
Service to wakeup host during boot time
https://github.com/mboljen/wakeup-host
systemd-service wake-on-lan
Last synced: 4 months ago
JSON representation
Service to wakeup host during boot time
- Host: GitHub
- URL: https://github.com/mboljen/wakeup-host
- Owner: mboljen
- Created: 2023-08-01T11:56:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-02T17:56:23.000Z (over 1 year ago)
- Last Synced: 2025-09-02T19:46:42.308Z (6 months ago)
- Topics: systemd-service, wake-on-lan
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wakeup-host
Service to wakeup remote host during boot time
## Synopsis
Use the following command to issue the command `start` on `/etc/init.d/wakeup-host`:
```console
$ wakeup-host-start
```
There is a desktop entry stored in `/usr/local/share/applications` that can be invoked from the menu of the desktop environment.
Use the following commands to enable and disable the automatic `systemd` service to invoke `wakeonlan` during boot and suspend times.
```console
$ make enable
$ make disable
```
Check the contents of the logfile that is monitored using `logrotate`.
## Requirements
+ [systemd](https://www.freedesktop.org/wiki/Software/systemd)
+ [wakeonlan](https://github.com/jpoliv/wakeonlan)
## Installation
Clone the remote repository and change into the local repository:
```console
$ git clone https://github.com/mboljen/wakeup-host
$ cd wakeup-host
```
Use the following command to install and uninstall this software:
```console
$ make install
$ make uninstall
```
## Configuration
Use the configuration file `/etc/wakeup-host.conf` to apply local settings:
```ini
# The MAC address of the host to wake up
MAC=
# Location of wakeonlan command
WOL=/usr/bin/wakeonlan
# Number of seconds to wait until the next invocation of wakeonlan is issued
DELAY=10
# Maximum number of retries if wakeonlan fails
RETRY=2
# Location of the logfile
LOGFILE=/var/log/wakeup-host.log
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)