/usr/sbin/vpnc-disconnect is in vpnc 0.5.3r512-2ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/bin/sh
pid=/var/run/vpnc/pid
if [ $# -ne 0 ]; then
echo "Usage: $0" 1>&2
exit 1
fi
PID="$(cat "$pid" 2> /dev/null)"
if [ -z "$PID" ]; then
echo "no vpnc found running"
exit 1
fi
if ! kill -0 "$PID" > /dev/null 2>&1; then
echo "no vpnc found running"
exit 1
fi
echo "Terminating vpnc daemon (pid: $PID)"
exec kill $PID
|