summaryrefslogtreecommitdiffstats
path: root/.local/bin/torwrap
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-04-11 10:03:33 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-04-11 10:03:33 -0400
commit080365dd22b967274833f50a5cd0cccc0790a658 (patch)
treeac187a4c8e8d29a34092e64ed0650d6c79ee35bc /.local/bin/torwrap
parent7b9277ae0b061af6890786a9149b7e26aa380e2b (diff)
downloadeibhear-080365dd22b967274833f50a5cd0cccc0790a658.tar.gz
eibhear-080365dd22b967274833f50a5cd0cccc0790a658.tar.zst
eibhear-080365dd22b967274833f50a5cd0cccc0790a658.zip
pgrep is a little slow, slower than ps | grep
Diffstat (limited to '.local/bin/torwrap')
-rwxr-xr-x.local/bin/torwrap2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/torwrap b/.local/bin/torwrap
index 2e42c87..82a268a 100755
--- a/.local/bin/torwrap
+++ b/.local/bin/torwrap
@@ -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