use /run instead of /var/run

This commit is contained in:
Thomas NOËL 2014-10-02 22:03:29 +02:00
parent 77b77c02fd
commit c06e870712
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import os
ETC_DIR = '/etc/passerelle'
VAR_DIR = '/var/lib/passerelle'
RUN_DIR = '/var/run/passerelle'
RUN_DIR = '/run/passerelle'
STATIC_ROOT = os.path.join(VAR_DIR, 'collected-static')
STATICFILES_DIRS = (os.path.join(VAR_DIR, 'static'),) + STATICFILES_DIRS
TEMPLATE_DIRS = (os.path.join(VAR_DIR, 'templates'),) + TEMPLATE_DIRS

2
init.d
View File

@ -15,7 +15,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC=Passerelle
NAME=passerelle
DAEMON=/usr/bin/gunicorn
RUN_DIR=/var/run/$NAME
RUN_DIR=/run/$NAME
PIDFILE=$RUN_DIR/$NAME.pid
LOG_DIR=/var/log/$NAME
SCRIPTNAME=/etc/init.d/$NAME