summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmaël Bouya2016-10-31 14:05:16 +0100
committerIsmaël Bouya2016-10-31 14:05:30 +0100
commitda0ff23d6449cc6baa4fafdd1d44c3f120357b97 (patch)
tree39df88c8f45a713b4f7089657589dcbe1e382c74
parentc52001e2274a309e5a94177c3a31e81565acb7bf (diff)
downloadaur-da0ff23d6449cc6baa4fafdd1d44c3f120357b97.tar.gz
Add log files to the systemd service
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD8
-rw-r--r--mediagoblin-celeryd.service1
-rw-r--r--mediagoblin-paster.service3
-rw-r--r--mediagoblin-tmpfiles.conf1
5 files changed, 13 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 53846f16e4f..f7e3debc78b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Sun Oct 30 23:20:12 UTC 2016
+# Mon Oct 31 13:05:27 UTC 2016
pkgbase = mediagoblin
pkgdesc = A free software media publishing platform
pkgver = 0.9.0
- pkgrel = 2
+ pkgrel = 3
url = http://mediagoblin.org
install = mediagoblin.install
arch = i686
@@ -37,11 +37,11 @@ pkgbase = mediagoblin
source = mediagoblin_local.ini
source = mediagoblin-tmpfiles.conf
sha256sums = SKIP
- sha256sums = f666807655f0dcafb041be9b684c2a1ff285e24cf06c5d2e8ab0974e8b2936b2
- sha256sums = aecbb1f1b60d5c2b524ea68e49feda0264cb49bc66d82c4511b800ac81642f01
+ sha256sums = 2a02c90dcc8f69ac2a072044d3e4281347ed048c2610cb2e11295e4876cfb409
+ sha256sums = f636d02f86d2dab5ecc901be5b0f7c42366500393f22dfdc7e354ca299fca65a
sha256sums = ac914d60886d9bf53d3f40b8b00a60d46ada1cac9130210e045a4776d898e884
sha256sums = 9adf338f5dbfb94ee7ae29433091b6991a1fa39a6135a8295f9f1cc1fde0edc1
- sha256sums = 1bf9172ba79bdac4694c5d4c8c2134bbcfdfadf29f0b4cfc88fa0a329201b202
+ sha256sums = abb6c4c4e54d4372adfe67ab22371ad625505098311955e5ae8e34102b059d47
pkgname = mediagoblin
diff --git a/PKGBUILD b/PKGBUILD
index 9c6e02975a3..dcdfca66f7d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=mediagoblin
pkgver=0.9.0
-pkgrel=2
+pkgrel=3
pkgdesc='A free software media publishing platform'
arch=('i686' 'x86_64')
url='http://mediagoblin.org'
@@ -32,11 +32,11 @@ source=(
'mediagoblin-tmpfiles.conf'
)
sha256sums=('SKIP'
- 'f666807655f0dcafb041be9b684c2a1ff285e24cf06c5d2e8ab0974e8b2936b2'
- 'aecbb1f1b60d5c2b524ea68e49feda0264cb49bc66d82c4511b800ac81642f01'
+ '2a02c90dcc8f69ac2a072044d3e4281347ed048c2610cb2e11295e4876cfb409'
+ 'f636d02f86d2dab5ecc901be5b0f7c42366500393f22dfdc7e354ca299fca65a'
'ac914d60886d9bf53d3f40b8b00a60d46ada1cac9130210e045a4776d898e884'
'9adf338f5dbfb94ee7ae29433091b6991a1fa39a6135a8295f9f1cc1fde0edc1'
- '1bf9172ba79bdac4694c5d4c8c2134bbcfdfadf29f0b4cfc88fa0a329201b202')
+ 'abb6c4c4e54d4372adfe67ab22371ad625505098311955e5ae8e34102b059d47')
prepare() {
cd "$srcdir/mediagoblin"
diff --git a/mediagoblin-celeryd.service b/mediagoblin-celeryd.service
index 76f3115d938..4100d211109 100644
--- a/mediagoblin-celeryd.service
+++ b/mediagoblin-celeryd.service
@@ -9,6 +9,7 @@ WorkingDirectory=/usr/share/webapps/mediagoblin/
Environment=MEDIAGOBLIN_CONFIG=/usr/share/webapps/mediagoblin/mediagoblin_local.ini \
CELERY_CONFIG_MODULE=mediagoblin.init.celery.from_celery
ExecStart=/usr/share/webapps/mediagoblin/bin/celery worker \
+ --logfile=/var/log/mediagoblin/celery.log \
--loglevel=INFO
PIDFile=/var/run/mediagoblin/mediagoblin-celeryd.pid
diff --git a/mediagoblin-paster.service b/mediagoblin-paster.service
index 962b6718391..f640375e67b 100644
--- a/mediagoblin-paster.service
+++ b/mediagoblin-paster.service
@@ -8,7 +8,8 @@ User=mediagoblin
Group=mediagoblin
ExecStart=/usr/share/webapps/mediagoblin/bin/paster serve \
/usr/share/webapps/mediagoblin/paste_local.ini \
- --pid-file=/var/run/mediagoblin/mediagoblin.pid
+ --pid-file=/var/run/mediagoblin/mediagoblin.pid \
+ --log-file=/var/log/mediagoblin/mediagoblin.log
ExecStop=/usr/share/webapps/mediagoblin/bin/paster serve \
--pid-file=/var/run/mediagoblin/mediagoblin.pid \
/usr/share/webapps/mediagoblin/paste_local.ini stop
diff --git a/mediagoblin-tmpfiles.conf b/mediagoblin-tmpfiles.conf
index 9a7d888810c..daf0e4e5503 100644
--- a/mediagoblin-tmpfiles.conf
+++ b/mediagoblin-tmpfiles.conf
@@ -1 +1,2 @@
D /var/run/mediagoblin 0755 mediagoblin mediagoblin -
+D /var/log/mediagoblin 0755 mediagoblin mediagoblin -