pgrep is a little slow, slower than ps | grep
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
|
||||
ifinstalled tremc transmission-cli || exit
|
||||
|
||||
! pgrep -x transmission-da >/dev/null && transmission-daemon && notify-send "Starting torrent daemon..." && sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-dwmblocks}"
|
||||
! ps ax | grep -q "\stransmission-daemon$" && transmission-daemon && notify-send "Starting torrent daemon..." && sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-dwmblocks}" &
|
||||
|
||||
$TERMINAL -e tremc
|
||||
|
||||
Reference in New Issue
Block a user