Running Cells as a service with Systemd
When deployed in a production environment, we generally advise to run Pydio Cells as a systemd service.
The present guide explains you how to do it on a Linux box, assuming that you have followed our recommended best practices during the installation process. Adapt to your specific setup if necessary.
Thus you have:
- defined
CELLS_WORKING_DIR
as/var/cells
- the downloaded binary at
/opt/pydio/bin/cells
- a
pydio
user that has correct (read and execute) permissions on/opt/pydio
and/var/cells
.
Create a new /etc/systemd/system/cells.service
file with following content:
Then, enable and start the service:
Various Notes¶
Loging¶
With the above configuration, Pydio Cells logs in rolling text files of 10MB under <CELLS_WORKING_DIR>/logs/
folder. Typically, on Linux:
It is worth noting that logs are also outputed to the systemd standard loging system so that you can also see them with e.g.:
Systemd working directory¶
In the above file, we also overwrite the default systemd configuration for the working directory by using:
Please note that this directory must exist and be writable before launching the application.
If it is not the case, the system fails to start with a message that can be quite cryptic for people that are not systemd fluent: