Skip to content

Installation from binary

Download

swarm-cronjob binaries are available on the releases page.

Choose the archive matching the destination platform:

And extract swarm-cronjob:

wget -qO- https://github.com/crazy-max/swarm-cronjob/releases/download/v1.16.0/swarm-cronjob_1.16.0_linux_amd64.tar.gz | tar -zxvf - swarm-cronjob

After downloading the binary, you can test it with ./swarm-cronjob --help and then move it to a permanent location.

Server configuration

Steps below are the recommended server configuration.

Prepare environment

Create a user to run swarm-cronjob, for example swarm-cronjob:

groupadd swarm-cronjob
useradd -s /bin/false -d /bin/null -g swarm-cronjob swarm-cronjob

Copy binary to global location

cp swarm-cronjob /usr/local/bin/swarm-cronjob

Running swarm-cronjob

After the steps above, you have two options to run swarm-cronjob:

See how to create Linux service to start swarm-cronjob automatically.

2. Running from terminal

/usr/local/bin/swarm-cronjob

Note

When launched manually, swarm-cronjob can be stopped with Ctrl+C.

Updating to a new version

You can update to a new version of swarm-cronjob by stopping it, replacing the binary at /usr/local/bin/swarm-cronjob and restarting the instance.

If you followed the installation steps above, the binary should keep the generic name swarm-cronjob. Do not change this, i.e. to include the version number.