Page MenuHomeSoftware Heritage
Paste P155

Systemd unit for gunicorn+aiohttp objstorage deployment
ActivePublic

Authored by seirl on Apr 24 2017, 2:44 PM.
[Unit]
Description=Remote Objstorage
[Service]
Type=simple
User=$objstorage_user
ExecStart=/usr/bin/gunicorn \
-w $gunicorn_workers \
--bind $gunicorn_listen_address:5003 \
--worker-class aiohttp.worker.GunicornWebWorker
'swh.objstorage.api.server.make_app("$objstorage_config")'
[Install]
WantedBy=multi-user.target