Unverified Commit acf74254 authored by Noé Lopez's avatar Noé Lopez
Browse files

Systemd services

parents
# Systemd services for ingestion
Run these by copying them into /etc/systemd/system/, then run
systemctl enable ingestion-discord and systemctl start
ingestion-discord for each data source.
\ No newline at end of file
# Systemd services for ingestion
[Unit]
Description=Discord data ingestion
[Service]
Environment="PLUGIN_PLATFORM_UPLOAD=false"
Environment="PLUGIN_PATH_TO_CONFIG=./user-config-discord.json"
Environment="PLUGIN_CACHE_PATH=./cache-discord"
Environment="PLUGIN_META_OVERWRITE=true"
ExecStart=java -jar /home/devops/ingestion-services/filesystem-plugin-2.1.0.jar
WorkingDirectory=/home/devops/ingestion-services/
User=devops
[Install]
WantedBy=default.target
\ No newline at end of file
[Unit]
Description=Github data ingestion
[Service]
Environment="PLUGIN_PLATFORM_UPLOAD=false"
Environment="PLUGIN_PATH_TO_CONFIG=./user-config-github.json"
Environment="PLUGIN_CACHE_PATH=./cache-github"
Environment="PLUGIN_META_OVERWRITE=true"
ExecStart=java -jar /home/devops/ingestion-services/filesystem-plugin-2.1.0.jar
WorkingDirectory=/home/devops/ingestion-services/
User=devops
[Install]
WantedBy=default.target
\ No newline at end of file
[Unit]
Description=Reddit data ingestion
[Service]
Environment="PLUGIN_PLATFORM_UPLOAD=false"
Environment="PLUGIN_PATH_TO_CONFIG=./user-config-reddit.json"
Environment="PLUGIN_CACHE_PATH=./cache-reddit"
Environment="PLUGIN_META_OVERWRITE=true"
ExecStart=java -jar /home/devops/ingestion-services/filesystem-plugin-2.1.0.jar
WorkingDirectory=/home/devops/ingestion-services/
User=devops
[Install]
WantedBy=default.target
\ No newline at end of file
[Unit]
Description=Telegram data ingestion
[Service]
Environment="PLUGIN_PLATFORM_UPLOAD=false"
Environment="PLUGIN_PATH_TO_CONFIG=./user-config-telegram.json"
Environment="PLUGIN_CACHE_PATH=./cache-telegram"
Environment="PLUGIN_META_OVERWRITE=true"
ExecStart=java -jar /home/devops/ingestion-services/filesystem-plugin-2.1.0.jar
WorkingDirectory=/home/devops/ingestion-services/
User=devops
[Install]
WantedBy=default.target
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment