mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 00:24:40 +01:00
new script to restart the daemon after suspend
There's a bug when coming back from suspend state, that causes eBPF proc monitor method stop working. The only solution to this problem for now, is restart the daemon every time the computer wakes up. See: https://github.com/evilsocket/opensnitch/discussions/834#discussioncomment-5712431).
This commit is contained in:
parent
06816816a1
commit
a7e64b0374
1 changed files with 14 additions and 0 deletions
14
utils/scripts/restart-opensnitch-onsleep.sh
Executable file
14
utils/scripts/restart-opensnitch-onsleep.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
# opensnitch - 2022-2023
|
||||
#
|
||||
# Due to a bug in gobpf, when coming back from suspend state, ebpf stops working.
|
||||
# The temporal solution is to stop/start the daemon on suspend.
|
||||
#
|
||||
# Copy it to /lib/systemd/system-sleep/ with any name and exec permissions.
|
||||
#
|
||||
if [ "$1" == "pre" ]; then
|
||||
service opensnitchd stop
|
||||
elif [ "$1" == "post" ]; then
|
||||
service opensnitchd stop
|
||||
service opensnitchd start
|
||||
fi
|
Loading…
Add table
Reference in a new issue