11 lines
159 B
Bash
Executable File
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"
|