dot

packages and services management
Log | Files | Refs | README

commit 648d4fd139a8877c5b87205366a8bc6879f8ccc6
parent f4553ada5944a9c38da8e39c8890ce4888ad1973
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun,  9 Dec 2018 22:15:35 +0100

s6/transmission: use /var/transmission to keep state

Diffstat:
As6/transmission/x/conf/b-incomplete-dir-enabled | 1+
As6/transmission/x/conf/s-download-dir | 1+
As6/transmission/x/conf/s-incomplete-dir | 1+
Ms6/transmission/x/run | 2+-
Ms6/transmission/x/setup | 4++--
5 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/s6/transmission/x/conf/b-incomplete-dir-enabled b/s6/transmission/x/conf/b-incomplete-dir-enabled @@ -0,0 +1 @@ +true diff --git a/s6/transmission/x/conf/s-download-dir b/s6/transmission/x/conf/s-download-dir @@ -0,0 +1 @@ +/var/torrent/download diff --git a/s6/transmission/x/conf/s-incomplete-dir b/s6/transmission/x/conf/s-incomplete-dir @@ -0,0 +1 @@ +/var/torrent/incomplete diff --git a/s6/transmission/x/run b/s6/transmission/x/run @@ -1,4 +1,4 @@ #!/usr/bin/env execlineb fdmove -c 2 1 -transmission-daemon -f -g data +transmission-daemon -f -g /var/transmission diff --git a/s6/transmission/x/setup b/s6/transmission/x/setup @@ -1,7 +1,7 @@ #!/usr/bin/env execlineb -if { mkdir -p data } -redirfd -w 1 data/settings.json +if { mkdir -p /var/transmission/incomplete /var/transmission/download } +redirfd -w 1 /var/transmission/settings.json if { echo "{" } ifte { echo "}" } { exit 1 }