Skip to main content

Running Suite as a Linux service

Below are steps for setting up a start Daemon for Suite on Rocky Linux 9 or Ubuntu 22.04 and 24.04.

Updated today

  1. Create a file at /lib/systemd/system/suite.service with the following contents:

    • <username> should be your Suite username.

    • <password> should be your Suite password.

    • <linux-user> should be the Linux username under which you want to run Suite.

    • <linux-group> should be the corresponding Linux group.

    • Memory usage, this will vary depending on your environment:

      • For environments with lots of memory, you can allow Suite to use the default memory configuration

        • do not set <memory_cache_max>

        • set <memory_high> to 1/4 of the available RAM, plus 5GB

      • For environments with limited memory or running other apps which consume lots of memory, you should reduce Suite's memory usage

        • set <memory_cache_max>, the minimum value is 1GB

        • set <memory_high> to <memory_cache_max> plus 5GB

      • <memory_high> must be formatted correctly, for example:

        • 6 Gigabytes: 6G

        • 10 Gigabytes: 10G

    [Unit]
    Description=Suite service
    After=network.target

    [Service]
    Environment="SUITE_USERNAME=<username>"
    Environment="SUITE_PASSWORD=<password>"
    User=<linux-user>
    Group=<linux-group>
    WorkingDirectory=/home/<linux-user>
    Type=oneshot
    RemainAfterExit=yes
    ExecStart=/usr/bin/suite start
    ExecStop=/usr/bin/suite stop --wait
    MemoryHigh=<memory_high>

    [Install]
    WantedBy=multi-user.target

  2. sudo systemctl daemon-reload

  3. sudo systemctl start suite.service

  4. If you are in a low-memory environment and want to configure the memory as described above:

    1. Ensure the service is running

    2. suite config set -k MAX_MEMORY_CACHE_SIZE_GIGABYTES -v <memory_cache_max>

    3. sudo systemctl restart suite.service

  5. If you want to mount multiple drives automatically:

    1. Ensure the service is running

    2. suite drive list to gather your drive IDs.

    3. Replace the ExecStart line with:

      ExecStart=/usr/bin/suite start -d <drive-id> -d <drive-id>

    4. sudo systemctl restart suite.service

You can use the Suite CLI to interact with the running service.

​

⚠️ Currently, Suite must run as a Type=oneshot service. If Suite is stopped while your computer is still running, it will not be started until the next reboot.

Did this answer your question?