Installation from binary¶
Download¶
swarm-cronjob binaries are available on releases page.
Choose the archive matching the destination platform:
- swarm-cronjob_1.13.0_darwin_amd64.tar.gz
- swarm-cronjob_1.13.0_darwin_arm64.tar.gz
- swarm-cronjob_1.13.0_linux_386.tar.gz
- swarm-cronjob_1.13.0_linux_amd64.tar.gz
- swarm-cronjob_1.13.0_linux_arm64.tar.gz
- swarm-cronjob_1.13.0_linux_armv5.tar.gz
- swarm-cronjob_1.13.0_linux_armv6.tar.gz
- swarm-cronjob_1.13.0_linux_armv7.tar.gz
- swarm-cronjob_1.13.0_linux_ppc64le.tar.gz
- swarm-cronjob_1.13.0_linux_riscv64.tar.gz
- swarm-cronjob_1.13.0_linux_s390x.tar.gz
- swarm-cronjob_1.13.0_windows_386.zip
- swarm-cronjob_1.13.0_windows_amd64.zip
- swarm-cronjob_1.13.0_windows_arm64.zip
And extract swarm-cronjob:
wget -qO- https://github.com/crazy-max/swarm-cronjobreleases/download/v1.13.0/swarm-cronjob_1.13.0_linux_x86_64.tar.gz | tar -zxvf - swarm-cronjob
After getting the binary, it can be tested with ./swarm-cronjob --help
command and moved to a
permanent location.
Server configuration¶
Steps below are the recommended server configuration.
Prepare environment¶
Create user to run swarm-cronjob (ex. 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 above steps, 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 killed using 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 have carried out the installation steps as described above, the binary should have the generic name
swarm-cronjob
. Do not change this, i.e. to include the version number.
Created: 2020-09-21 23:07:39