update to django 3.0 & asgi
This commit is contained in:
14
_systemd/bots-bot-worker.service
Normal file
14
_systemd/bots-bot-worker.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=bots telegram bots service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=http
|
||||
Group=http
|
||||
WorkingDirectory=/srv/apps/bots
|
||||
ExecStart=/srv/apps/bots/venv/bin/python /srv/apps/bots/manage.py bot_worker
|
||||
KillSignal=SIGINT
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
14
_systemd/bots-celeryd.service
Normal file
14
_systemd/bots-celeryd.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=bots celeryd service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=http
|
||||
Group=http
|
||||
WorkingDirectory=/srv/apps/bots
|
||||
ExecStart=/srv/apps/bots/venv/bin/celery worker --app=config -l info
|
||||
KillSignal=SIGINT
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
14
_systemd/bots-periodic-bots.service
Normal file
14
_systemd/bots-periodic-bots.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=bots telegram bots service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=http
|
||||
Group=http
|
||||
WorkingDirectory=/srv/apps/bots
|
||||
ExecStart=/srv/apps/bots/venv/bin/python /srv/apps/bots/manage.py periodic_bots
|
||||
KillSignal=SIGINT
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
14
_systemd/bots-periodic-feeds.service
Normal file
14
_systemd/bots-periodic-feeds.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=bots telegram bots service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=http
|
||||
Group=http
|
||||
WorkingDirectory=/srv/apps/bots
|
||||
ExecStart=/srv/apps/bots/venv/bin/python /srv/apps/bots/manage.py periodic_feeds
|
||||
KillSignal=SIGINT
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
19
_systemd/bots.service
Normal file
19
_systemd/bots.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=bots main service
|
||||
After=network.target
|
||||
Requires=bots-celeryd.service
|
||||
Requires=bots-bot-worker.service
|
||||
Requires=bots-periodic-feeds.service
|
||||
Requires=bots-periodic-bots.service
|
||||
# Requires=bots-aggregator-client.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=http
|
||||
Group=http
|
||||
WorkingDirectory=/srv/apps/bots
|
||||
ExecStart=/srv/apps/bots/venv/bin/daphne -u /tmp/bots.sock config.asgi:application
|
||||
KillSignal=SIGINT
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user