20 lines
462 B
Python
20 lines
462 B
Python
# -*- coding: utf-8; mode: python -*-
|
|
|
|
info["owner"] = "root"
|
|
info["group"] = "root"
|
|
info["mode"] = 0644
|
|
|
|
out("""# Fichier géré par Bcfg2
|
|
# Fichier de configuration systemd pour la socket de l'intranet2
|
|
# Ce service est configuré pour:
|
|
# ----> Ouvrir une socket UNIX
|
|
# ----> Permettre à intranet2.service d'écouter sur la socket
|
|
[Unit]
|
|
Description=Socket Intranet 2
|
|
|
|
[Socket]
|
|
ListenStream=/tmp/gunicorn-intranet.sock
|
|
|
|
[Install]
|
|
WantedBy=sockets.target""")
|
|
|