Documentation: Flowy Startup


Please support us to improve our service. We would like to use statistics anonymously.

We do not pass on your data! You can find more information in our privacy policy.

Decline

< Back to documentation

Flowy Startup

The usage of System D is recommended.

systemd entries

The following values can be used for the admin service - usually place 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

The following values can be used for the processing service - usually place 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

Once both files are saved, automatic startup should be enabled and units need to be reloaded using the following command:

systemctl enable flowy-admin
systemctl enable flowy-processing
systemctl daemon-reload

Startup and shutdown

Using System D these are the commands for admin:

systemctl start flowy-admin
systemctl status flowy-admin
systemctl stop flowy-admin

respective processing:

systemctl start flowy-processing
systemctl status flowy-processing
systemctl stop flowy-processing