From 30a666adc45c81c691e07ed7322072b298751ca2 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sun, 26 Jan 2025 16:39:08 -0600 Subject: add systemd note to transmission post --- content/blog/2024-09-23-self-hosting-transmission.org | 17 +++++++++++++++++ utils/hooks/pre-commit | 8 -------- 2 files changed, 17 insertions(+), 8 deletions(-) delete mode 100644 utils/hooks/pre-commit diff --git a/content/blog/2024-09-23-self-hosting-transmission.org b/content/blog/2024-09-23-self-hosting-transmission.org index 4cc9639..5b244ff 100644 --- a/content/blog/2024-09-23-self-hosting-transmission.org +++ b/content/blog/2024-09-23-self-hosting-transmission.org @@ -107,6 +107,23 @@ doing so now. Once you start working on remote access via a reverse proxy, you'll be adding an additional layer of complexity that bring in more confusion when errors occur. +> NOTE: If you are trying to initialize =transmission-daemon= via =systemd= +> instead of using the manually-executed command above, you may notice that the +> service will timeout and fail to start. + +To fix this timeout issue, you need to edit the service file and change +=Type=notify= to =Type=simple=. + +#+begin_src shell +# Command to edit the service file: +sudo systemctl edit --full transmission-daemon.service + +# Make the edit noted above and then reload the service file with this command: +sudo systemctl daemon-reload +sudo systemctl enable transmission-daemon.service +sudo systemctl start transmission-daemon.service +#+end_src + * Reverse Proxy Now that the service is running and configured properly, let's work on remote diff --git a/utils/hooks/pre-commit b/utils/hooks/pre-commit deleted file mode 100644 index 69883fc..0000000 --- a/utils/hooks/pre-commit +++ /dev/null @@ -1,8 +0,0 @@ -# .git/hooks/pre-commit -#!/bin/bash -for file in $(git diff --cached --name-only | grep -E '\.org$'); do - if ! grep -q "^#\+TITLE:" "$file"; then - echo "Error: $file is missing a TITLE." - exit 1 - fi -done -- cgit v1.2.3-70-g09d2