| 12345678910111213141516171819202122 | #!/bin/bash## LEAK_DETECTIVE_LOG is set for automated runs, however, this is not passed# to a process started via systemctl. This wrapper is used to set the variable# for the strongswan.service unit.ORIG=/bin/systemctlCONF=/lib/systemd/system/strongswan.serviceif [[ "$2" != "strongswan" ]]; then	$ORIG "$@"fiif [[ "$1" == "start" && -n $LEAK_DETECTIVE_LOG ]]; then	sed -i "s:Type=:Environment=LEAK_DETECTIVE_LOG=$LEAK_DETECTIVE_LOG\nType=:" $CONF 2>/dev/nullfi$ORIG "$@"if [[ "$1" == "stop" ]]; then	sed -i '/LEAK_DETECTIVE_LOG/d' $CONF 2>/dev/nullfi
 |