Have s6-setuidgid look up names from /etc/hosts

This commit is contained in:
Disassembler 2018-09-19 16:52:29 +02:00
parent e055eb3542
commit 0a30deb7e2
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
12 changed files with 13 additions and 11 deletions

View File

@ -43,6 +43,8 @@ lxc-build ${SOURCE_DIR}/postgres
lxc-build ${SOURCE_DIR}/rabbitmq
lxc-build ${SOURCE_DIR}/redis
lxc-build ${SOURCE_DIR}/sahana
lxc-build ${SOURCE_DIR}/sahana-demo
lxc-build ${SOURCE_DIR}/sambro
lxc-build ${SOURCE_DIR}/seeddms
lxc-build ${SOURCE_DIR}/sigmah
lxc-build ${SOURCE_DIR}/solr

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
foreground { /bin/add-ca-cert }
s6-setuidgid 8004:8004
s6-setuidgid ckandp
/usr/sbin/uwsgi --plugin python --http-socket 0.0.0.0:8080 --wsgi-file /etc/ckan-datapusher/datapusher.wsgi --enable-threads

View File

@ -3,5 +3,5 @@
cd /srv/cts
export DJANGO_SETTINGS_MODULE cts.settings.spotter
fdmove -c 2 1
s6-setuidgid 8006:8006
s6-setuidgid cts
/srv/cts/manage.py runserver

View File

@ -4,5 +4,5 @@ foreground { s6-svwait -t 3000 -u /etc/services.d/xorg }
cd /srv/frontlinesms
export DISPLAY :10
fdmove -c 2 1
s6-setuidgid 8018:8018
s6-setuidgid sms
/srv/frontlinesms/frontlinesms2/FrontlineSMS2_Launcher

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
fdmove -c 2 1
s6-setuidgid 8018:8018
s6-setuidgid sms
Xorg -noreset +extension GLX +extension RANDR +extension RENDER -config dummy.conf :10

View File

@ -2,5 +2,5 @@
cd /srv/build2xlsform
fdmove -c 2 1
s6-setuidgid 8017:8017
s6-setuidgid odkbuild
node lib/server.js

View File

@ -3,5 +3,5 @@
cd /srv/opendatakit-build
fdmove -c 2 1
foreground { /usr/sbin/update-ca-certificates }
s6-setuidgid 8017:8017
s6-setuidgid odkbuild
bundle exec rackup config.ru -o 0.0.0.0 -p 8080

View File

@ -2,5 +2,5 @@
fdmove -c 2 1
export NODE_ENV production
s6-setuidgid 8007:8007
s6-setuidgid omk
/usr/bin/node /srv/openmapkit/server.js

View File

@ -3,5 +3,5 @@
cd /srv/pandora/pandora
export HOME /srv/pandora
fdmove -c 2 1
s6-setuidgid 8002:8002
s6-setuidgid pandora
./manage.py celerybeat -s /srv/pandora/data/celerybeat-schedule --pidfile pandora-cron.pid -l INFO

View File

@ -3,5 +3,5 @@
cd /srv/pandora/pandora
export HOME /srv/pandora
fdmove -c 2 1
s6-setuidgid 8002:8002
s6-setuidgid pandora
./manage.py celery worker -Q encoding -n pandora-encoding --pidfile pandora-encoding.pid --maxtasksperchild 500 -l INFO

View File

@ -3,5 +3,5 @@
cd /srv/pandora/pandora
export HOME /srv/pandora
fdmove -c 2 1
s6-setuidgid 8002:8002
s6-setuidgid pandora
./manage.py celery worker -Q default,celery -n pandora-default --pidfile pandora-tasks.pid --maxtasksperchild 1000 -l INFO

View File

@ -3,5 +3,5 @@
cd /srv/pandora/pandora
export HOME /srv/pandora
fdmove -c 2 1
s6-setuidgid 8002:8002
s6-setuidgid pandora
gunicorn -c gunicorn_config.py wsgi:application