dotfiles/bin/restart

12 lines
154 B
Bash
Executable File

#!/bin/bash
if [ -z "$1" ]
then
echo "./restart [service]";
exit 1;
fi
pkill -USR1 -x $1
dunstify "$1 restarted" -t 3500
$1 & > /dev/null 2>&1