PortWINE/data_from_portwine/scripts/restart
2020-05-20 23:08:34 +03:00

12 lines
346 B
Bash
Executable File

#!/bin/bash
# Author: PortWINE-Linux.ru
. "$(dirname $(readlink -f "$0"))/runlib"
"${WINESERVER}" -k
wine_pids=$(ls -l /proc/*/exe 2>/dev/null | grep -E 'wine(64)?-preloader|wineserver' | perl -pe 's;^.*/proc/(\d+)/exe.*$;$1;g;')
if ! [ -z "${wine_pids}" ] ; then
kill -9 ${wine_pids}
fi
STOP_PORTWINE | pwzen
rm -f "${config_path}/dxvk_on"