Skip to content

Instantly share code, notes, and snippets.

@ootput
Created December 1, 2012 08:46
Show Gist options
  • Select an option

  • Save ootput/4181117 to your computer and use it in GitHub Desktop.

Select an option

Save ootput/4181117 to your computer and use it in GitHub Desktop.
Small patch to fix Sickbeard's FreeBSD init script
diff --git a/init.freebsd b/init.freebsd
index 8d9ba4b..3f65b31 100755
--- a/init.freebsd
+++ b/init.freebsd
@@ -69,7 +69,7 @@ verify_sickbeard_pid() {
sickbeard_stop() {
echo "Stopping $name"
verify_sickbeard_pid
- ${WGET} -O - -q --user=${SBUSR} --password=${SBPWD} "http://${HOST}:${PORT}/home/shutdown/" >/dev/null
+ ${WGET} -O - -q --user=${SBUSR} --password=${SBPWD} "http://${HOST}:${PORT}/home/shutdown/?pid=${pid}" >/dev/null
if [ -n "${pid}" ]; then
wait_for_pids ${pid}
echo "Stopped"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment