vo: harmonise la conf intranet2 avec celle d'o2

This commit is contained in:
Daniel STAN 2015-07-01 22:34:13 +02:00
parent 3b16698bb1
commit bfd0fb7f71
4 changed files with 19 additions and 8 deletions

View file

@ -387,6 +387,7 @@
<Group name="o2"
profile="true">
<!-- à activer vers jessie: <Group name="intranet2-service"/>-->
<Group name="crans-vm-wheezy"/>
<Group name="intranet2-server"/>
<Group name="https_cert"/>
@ -1598,6 +1599,14 @@
</Group>
<Group name="intranet2-dev">
<Group name="intranet2-service"/>
<Group name="nginx"/> <!-- Pour l'intranet -->
<Group name="gunicorn"/>
<Group name="secrets-acl"/>
<Bundle name="quota"/>
</Group>
<Group name="intranet2-service">
<Bundle name="intranet2-service"/>
</Group>

View file

@ -28,5 +28,5 @@ if has("vert"):
if has("news-server"):
out('%s --untracked-weekly --repository=/var/www --from="%s" --to="%s"' % (notifier_path, default_from, default_to))
if has("intranet2-server"):
if has("intranet2-service"):
out('%s --untracked-weekly --repository=/usr/local/django/intranet --from="%s" --to="%s"' % (notifier_path, default_from, default_to))

View file

@ -89,6 +89,11 @@ if has('radio'):
service(None, name='radio-vlc', start_cmd = "/etc/init.d/radio start", stop_cmd = "/etc/init.d/radio stop", pidp='/tmp/multicast.pid')
service(None, name='radio-igmp', start_cmd = "/etc/init.d/igmp start", stop_cmd = "/etc/init.d/igmp stop", pidf='igmp')
service('intranet2-service',
name="intranet2",
pidp='/run/gunicorn/intranet2.pid',
)
if has('gunicorn'):
# on utilise le prob gunicorn-debian, qui liste les sites actifs sur
# /etc/gunicorn.d/

View file

@ -24,12 +24,9 @@ After=network-online.target
Type=forking
User=root
Group=root
PIDFile=/run/gunicorn/intranet2.pid""")
if has('intranet2-dev'):
out("""WorkingDirectory=/localhome/django/intranet-dev/""")
if has('intranet2-server'):
out("""WorkingDirectory=/usr/local/intranet/""")
out("""ExecStart=/usr/bin/gunicorn wsgi:application --pid=/run/gunicorn/intranet2.pid --name www-data --user www-data --group www-data --daemon --log-file /var/log/gunicorn/intranet2.log --log-level=info --bind=unix:///tmp/gunicorn-intranet.sock --workers=1
PIDFile=/run/gunicorn/intranet2.pid
WorkingDirectory=/usr/local/django/intranet/
ExecStart=/usr/bin/gunicorn wsgi:application --pid=/run/gunicorn/intranet2.pid --name www-data --user www-data --group www-data --daemon --log-file /var/log/gunicorn/intranet2.log --log-level=info --bind=unix:///tmp/gunicorn-intranet.sock --workers=1
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
Restart=on-failure