scripts/restart-program
2022-12-26 14:20:37 +01:00

11 lines
159 B
Bash
Executable File

#!/bin/bash
# Restarts a program
[ -z "$1" ] && exit 1
ID=$(pgrep "$1")
kill -9 $ID
$@ &>/dev/null & disown
quick-notify "Program Restarter" "$1 restarted"