core-agent-linux/misc/tinyproxy-wrapper
Frédéric Pierret (fepitre) 94dad3640c
Use exec to ease systemd handling the tinyproxy process
From Marek's comments
2019-04-17 12:47:22 +02:00

13 lines
302 B
Bash

#!/bin/bash
if [ -e /usr/sbin/tinyproxy ]; then
echo "Found tinyproxy at /usr/sbin/tinyproxy"
exec /usr/sbin/tinyproxy "$@"
elif [ -e /usr/bin/tinyproxy ]; then
echo "Found tinyproxy at /usr/bin/tinyproxy"
exec /usr/bin/tinyproxy "$@"
else
echo "tinyproxy not found"
exit 1
fi