Experimental spice proxy provider.

This commit is contained in:
Michael Lipp 2024-04-10 11:14:32 +02:00
parent 383d1c5cca
commit 98f5c1e402
11 changed files with 154 additions and 0 deletions

19
spice-squid/run.sh Executable file
View file

@ -0,0 +1,19 @@
#!/bin/sh
CONF_OPT="-f /run/etc/squid/squid.conf"
/usr/sbin/squid $CONF_OPT
inotifywait -m -e create -r /run/etc/squid |
while read file_path file_event file_name; do
if [ "$file_event" != "CREATE" ]; then
continue
fi
if [ -r /run/squid/squid.pid ]; then
echo "Reconfiguring squid"
/usr/sbin/squid $CONF_OPT -k reconfigure
else
echo "Restarting squid"
/usr/sbin/squid $CONF_OPT
fi
echo "Processed event"
done