diff options
Diffstat (limited to 'systemd')
| -rw-r--r-- | systemd/config.env | 26 | ||||
| -rw-r--r-- | systemd/vainsocial-apigrabber.service | 13 | ||||
| -rw-r--r-- | systemd/vainsocial-compiler.service | 13 | ||||
| -rw-r--r-- | systemd/vainsocial-processor.service | 13 |
4 files changed, 65 insertions, 0 deletions
diff --git a/systemd/config.env b/systemd/config.env new file mode 100644 index 0000000..d52d740 --- /dev/null +++ b/systemd/config.env @@ -0,0 +1,26 @@ +# apigrabber +POSTGRESQL_HOST= +POSTGRESQL_PORT=5433 +POSTGRESQL_DB=vain_raw +POSTGRESQL_USER=vainraw +POSTGRESQL_PASSWORD= + +# processor, compiler +# raw +POSTGRESQL_SOURCE_HOST= +POSTGRESQL_SOURCE_PORT=5433 +POSTGRESQL_SOURCE_DB=vain_raw +POSTGRESQL_SOURCE_USER=vainraw +POSTGRESQL_SOURCE_PASSWORD= + +# web +POSTGRESQL_DEST_HOST= +POSTGRESQL_DEST_PORT=5433 +POSTGRESQL_DEST_DB=vain_web +POSTGRESQL_DEST_USER=vainweb +POSTGRESQL_DEST_PASSWORD= + +VAINSOCIAL_APITOKEN= + +VAINSOCIAL_SPIDER=true +VAINSOCIAL_ANALYZE=false diff --git a/systemd/vainsocial-apigrabber.service b/systemd/vainsocial-apigrabber.service new file mode 100644 index 0000000..10205f6 --- /dev/null +++ b/systemd/vainsocial-apigrabber.service @@ -0,0 +1,13 @@ +[Unit] +Description=Vainsocial API grabber service +After=network.target + +[Service] +Type=simple +User=vainsocial +ExecStart=/vainsocial/apigrabber/venv/bin/python /vainsocial/apigrabber/api.py +Restart=on-failure +EnvironmentFile=/vainsocial/systemd/config.env + +[Install] +WantedBy=multi-user.target diff --git a/systemd/vainsocial-compiler.service b/systemd/vainsocial-compiler.service new file mode 100644 index 0000000..dc90979 --- /dev/null +++ b/systemd/vainsocial-compiler.service @@ -0,0 +1,13 @@ +[Unit] +Description=Vainsocial compiler service +After=network.target + +[Service] +Type=simple +User=vainsocial +ExecStart=/vainsocial/statscompiler/venv/bin/python /vainsocial/statscompiler/api.py +Restart=on-failure +EnvironmentFile=/vainsocial/systemd/config.env + +[Install] +WantedBy=multi-user.target diff --git a/systemd/vainsocial-processor.service b/systemd/vainsocial-processor.service new file mode 100644 index 0000000..c7a7cf0 --- /dev/null +++ b/systemd/vainsocial-processor.service @@ -0,0 +1,13 @@ +[Unit] +Description=Vainsocial processor service +After=network.target + +[Service] +Type=simple +User=vainsocial +ExecStart=/vainsocial/processor/venv/bin/python /vainsocial/processor/api.py +Restart=on-failure +EnvironmentFile=/vainsocial/systemd/config.env + +[Install] +WantedBy=multi-user.target |
