#!/bin/bash # Restart an application by killing it and relaunching via uwsm. # Usage: station-restart-app [application-args...] pkill -x $1 setsid uwsm-app -- "$@" >/dev/null 2>&1 &