Dokumentation: Flowy-Startup
Flowy-Startup
Die Verwendung von systemd wird empfohlen.
systemd-Einträge
Die folgenden Werte können für den Admin-Dienst verwendet werden - üblicherweise abgelegt in /etc/systemd/system/flowy-admin.service:
[Unit]
Description=Flowy Admin Service
[Service]
PIDFile=/tmp/pids/flowy.admin
User=app
Group=app
ExecStart=/usr/bin/java -Xms2g -Xmx7g -Dlogging.config=./conf/logback-admin.xml -jar /opt/flowy/admin/bin/flowy-admin.jar --spring.config.location=classpath:./application.yml,./conf/flowy-admin.yml
WorkingDirectory=/opt/flowy/admin
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
Die folgenden Werte können für den Verarbeitungsdienst verwendet werden - üblicherweise abgelegt in /etc/systemd/system/flowy-processing.service:
[Unit]
Description=Flowy Processing Service
[Service]
PIDFile=/tmp/pids/flowy.processing
User=app
Group=app
ExecStart=/usr/bin/java -Xms1g -Xmx2g -Dlogging.config=./conf/logback-processing.xml -jar /opt/flowy/processing/bin/flowy-processing.jar --spring.config.location=classpath:./application.yml,./conf/flowy-processing.yml
WorkingDirectory=/opt/flowy/processing
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
Nachdem beide Dateien gespeichert wurden, sollte der automatische Start aktiviert werden und die Units müssen mit dem folgenden Befehl neu geladen werden:
systemctl enable flowy-admin
systemctl enable flowy-processing
systemctl daemon-reload
Starten und Beenden
Mit systemd lauten die Befehle für den Admin-Dienst:
systemctl start flowy-admin
systemctl status flowy-admin
systemctl stop flowy-admin
bzw. für den Verarbeitungsdienst:
systemctl start flowy-processing
systemctl status flowy-processing
systemctl stop flowy-processing

