4 stable releases
Uses new Rust 2024
new 1.1.0 | Apr 19, 2025 |
---|---|
1.0.2 | Apr 18, 2025 |
1.0.1 | Apr 16, 2025 |
#2328 in Command line utilities
216 downloads per month
42KB
959 lines
justrun
Just run it! A simple scheduler system.
Usage
Install as root:
sudo cargo install justrun --root /usr/local/
Or install as user and copy:
cargo install justrun
which justrun
sudo cp JUSTRUN_PATH /usr/local/bin
which justrund
sudo cp JUSTRUND_PATH /usr/local/bin
Daemon
Create a service for the daemon. Example for SystemD:
[Unit]
Description=Justrun Daemon
After=default.target
Wants=default.target
[Service]
ExecStart=REPLACE WITH which justrund
Restart=on-failure
RestartSec=5
StandardOutput=journal
StandardError=journal
User=root
[Install]
WantedBy=default.target
Add services
Justrun requires a yaml config file to launch daemons.
justrun init
justrun.yaml
name: example
start: 'echo "Hello, world!"'
Register the directory with the config:
sudo justrun reg
Restart the justrund
daemon:
sudo justrun restartd
Check for errors:
sudo justrun status example
Dependencies
~8–17MB
~214K SLoC