19 lines
462 B
Desktop File
19 lines
462 B
Desktop File
# Put it in /etc/systemd/system/<projectname>.service
|
|
[Unit]
|
|
Description=Wake-on-LAN listener for Proxmox VMs/LXCs
|
|
After=network-online.target pve-cluster.service
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
# Set IFACE here if you don't want vmbr0:
|
|
# Environment=IFACE=vmbr1
|
|
# or for OVS: Environment=IFACE=ovs
|
|
Environment=IFACE=ovs
|
|
ExecStart=/root/PVE-VM-WOL/pve-wol-server.sh
|
|
Restart=always
|
|
RestartSec=5s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|