vo: harmonise la conf intranet2 avec celle d'o2
This commit is contained in:
parent
3b16698bb1
commit
bfd0fb7f71
4 changed files with 19 additions and 8 deletions
|
@ -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))
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue