Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| 04-linux:10-administration:wakeonlan [2021/01/15 21:02] – Roge | 04-linux:10-administration:wakeonlan [2021/01/16 13:20] (Version actuelle) – [Réveil] Roge | ||
|---|---|---|---|
| Ligne 17: | Ligne 17: | ||
| - | sudo vi / | + | * sudo vi / |
| + | |||
| In that file, paste the following: | In that file, paste the following: | ||
| + | <code bash> | ||
| [Unit] | [Unit] | ||
| Description=Configure Wake On LAN | Description=Configure Wake On LAN | ||
| Ligne 29: | Ligne 32: | ||
| [Install] | [Install] | ||
| WantedBy=basic.target | WantedBy=basic.target | ||
| + | </ | ||
| Save and close the file. Make systemd aware of the new script with the command: | Save and close the file. Make systemd aware of the new script with the command: | ||
| + | * sudo systemctl daemon-reload | ||
| - | sudo systemctl daemon-reload | + | Enable the new service with the command: |
| - | Enable the new service with the command: | + | * sudo systemctl enable wol.service |
| - | sudo systemctl enable wol.service | ||
| Finally, start the service with the command: | Finally, start the service with the command: | ||
| - | + | * sudo systemctl start wol.service | |
| - | sudo systemctl start wol.service | + | |
| ===== Réveil ===== | ===== Réveil ===== | ||
| - | * wakeonlan MAC | + | * wakeonlan |