Installation from binary¶
Download¶
swarm-cronjob binaries are available on the releases page.
Choose the archive matching the destination platform:
- swarm-cronjob_1.16.0_darwin_amd64.tar.gz
- swarm-cronjob_1.16.0_darwin_arm64.tar.gz
- swarm-cronjob_1.16.0_linux_386.tar.gz
- swarm-cronjob_1.16.0_linux_amd64.tar.gz
- swarm-cronjob_1.16.0_linux_arm64.tar.gz
- swarm-cronjob_1.16.0_linux_armv5.tar.gz
- swarm-cronjob_1.16.0_linux_armv6.tar.gz
- swarm-cronjob_1.16.0_linux_armv7.tar.gz
- swarm-cronjob_1.16.0_linux_ppc64le.tar.gz
- swarm-cronjob_1.16.0_linux_riscv64.tar.gz
- swarm-cronjob_1.16.0_linux_s390x.tar.gz
- swarm-cronjob_1.16.0_windows_386.zip
- swarm-cronjob_1.16.0_windows_amd64.zip
- swarm-cronjob_1.16.0_windows_arm64.zip
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:
1. Creating a service file (recommended)¶
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.