lakinduakash / linux-wifi-hotspot

Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
BSD 2-Clause "Simplified" License
3.04k stars 282 forks source link

auto restart systemd service after system suspend (convenience feature I guess) #315

Open specs32 opened 1 year ago

specs32 commented 1 year ago

hello hello... to save power I put my system into suspend a couple times a day, after wake up I have to manually restart the systemd service...

Would it be possible to add a "restart after suspend hook" to this package ?

(I am a dummy and I don't want to spend 10 hours on google to find out how and why, for you it is probably a 5 minute thing)

Good work so far , thanks !!

` ┬─[happybum@AFRIKA:~]─[11:55:47] ╰─>$ sudo systemctl status create_ap [sudo] password for happybum: ● create_ap.service - Create AP Service Loaded: loaded (/usr/lib/systemd/system/create_ap.service; enabled; preset: disabled) Active: active (running) since Sat 2023-05-13 11:55:41 CEST; 1h 48min ago Main PID: 47909 (create_ap) Tasks: 6 (limit: 16501) Memory: 7.0M CPU: 8.085s CGroup: /system.slice/create_ap.service ├─ 47909 /bin/bash /usr/bin/create_ap --config /etc/create_ap.conf ├─ 48387 dnsmasq -C /tmp/create_ap.wlan0.conf.8Aj20UVj/dnsmasq.conf -x /tmp/create_ap.wlan0.conf.8Aj20UVj/dnsm> ├─ 48388 /bin/bash /usr/bin/create_ap --config /etc/create_ap.conf ├─ 48393 /usr/bin/hostapd /tmp/create_ap.wlan0.conf.8Aj20UVj/hostapd.conf ├─ 48400 haveged -w 1024 -p /tmp/create_ap.common.conf/haveged.pid └─129226 sleep 2

Mai 13 13:24:41 AFRIKA create_ap[48393]: handle_probe_req: send failed Mai 13 13:42:29 AFRIKA create_ap[48393]: handle_probe_req: send failed Mai 13 13:42:29 AFRIKA create_ap[48393]: handle_probe_req: send failed Mai 13 13:42:29 AFRIKA create_ap[48393]: handle_probe_req: send failed Mai 13 13:42:49 AFRIKA create_ap[48393]: handle_probe_req: send failed Mai 13 13:42:49 AFRIKA create_ap[48393]: handle_probe_req: send failed Mai 13 13:42:49 AFRIKA create_ap[48393]: handle_probe_req: send failed Mai 13 13:43:29 AFRIKA create_ap[48393]: handle_probe_req: send failed Mai 13 13:43:29 AFRIKA create_ap[48393]: handle_probe_req: send failed Mai 13 13:43:29 AFRIKA create_ap[48393]: handle_probe_req: send failed

`