summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander <alex@spline.inf.fu-berlin.de>2015-08-28 02:48:17 +0200
committerAlexander <alex@spline.inf.fu-berlin.de>2015-08-28 02:48:17 +0200
commit27b3ebd4eb55174e67c643d864458371ad89eb66 (patch)
tree713c45b8d2bf8841ff4a2b338ad140665030333b
parentb5e718d6f4d37ca31c12eef603c6199c4b89a046 (diff)
downloadgit-tftpd-27b3ebd4eb55174e67c643d864458371ad89eb66.tar.gz
git-tftpd-27b3ebd4eb55174e67c643d864458371ad89eb66.tar.bz2
git-tftpd-27b3ebd4eb55174e67c643d864458371ad89eb66.zip
Move log/pid file into var.
-rw-r--r--.gitignore2
-rwxr-xr-xbin/git-tftpd3
-rw-r--r--var/.keep0
3 files changed, 4 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 93a3244..27d6cb6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
repo/
*.pyc
dropin.cache
+var/*.log
+var/*.pid
diff --git a/bin/git-tftpd b/bin/git-tftpd
index b78b6e9..038932b 100755
--- a/bin/git-tftpd
+++ b/bin/git-tftpd
@@ -14,4 +14,5 @@ else
args=()
fi
-PYTHONPATH="$dir/../src/" twistd "${args[@]}" git-tftpd "$@"
+PYTHONPATH="$dir/../src/" twistd --logfile="$dir/../var/git-tftpd.log" \
+ --pidfile="$dir/../var/git-tftpd.pid" "${args[@]}" git-tftpd "$@"
diff --git a/var/.keep b/var/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/var/.keep