Remove systemd socket env vars to not fail other systemd compatible daemons launched inside butterfly

This commit is contained in:
Florian Mounier
2014-08-21 16:42:38 +02:00
parent beb28d7a61
commit 764a9b7884
2 changed files with 5 additions and 1 deletions

View File

@@ -228,6 +228,10 @@ http_server.listen(port, address=host)
url = "http%s://%s:%d/*" % (
"s" if not tornado.options.options.unsecure else "", host, port)
if http_server.systemd:
os.environ.pop('LISTEN_PID')
os.environ.pop('LISTEN_FDS')
# This is for debugging purpose
try:
from wsreload.client import sporadic_reload, watch

View File

@@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '1.5.5'
__version__ = '1.5.6'
import os