Installation

AllWatch is packaged for Debian and Ubuntu, Fedora, openSUSE Leap and Arch Linux. Each package installs /usr/bin/allwatch, the systemd unit allwatch.service, an example configuration and the manual page in English, French, German, Spanish and Chinese.

Install the package

Download allwatch_0.1.0-7_all.deb and SHA256SUMS from the download page, then run:

sudo apt install ./allwatch_0.1.0-7_all.deb

The package depends on Bash 5 or later. netcat-openbsd is suggested, not required, and is used only by the test double dummy-target.sh.

The announced level is installation and diagnosis validated in a container, on Debian 12 and 13 and on Ubuntu 22.04 and 24.04. The Debian package was also run for real: installed as a service on a Raspberry Pi 4 under Debian 13, with a real application, for a two-hour run and then a six-hour run (95 events, 95 passed, none failed), then removed and purged.

Other families: Fedora, openSUSE Leap and Arch Linux

Download the file of your family and SHA256SUMS from the download page, then run the line of your family (Fedora, openSUSE Leap, Arch Linux, in this order):

sudo dnf install ./allwatch-0.1.0-1.fc44.noarch.rpm
sudo zypper install --allow-unsigned-rpm ./allwatch-0.1.0-1.leap160.noarch.rpm
sudo pacman -U ./allwatch-0.1.0-1-any.pkg.tar.zst

These packages install the service but do not start it: declare your targets as described below, then run sudo systemctl enable --now allwatch. The announced level is the same: installation and diagnosis validated in a container, on Debian 12 and 13, Ubuntu 22.04 and 24.04, Fedora 43, 44 and 45, openSUSE Leap 16.0 and Arch Linux.

Check the program

allwatch --version
allwatch --help
allwatch --diagnose /etc/allwatch/allwatch.conf

--version prints allwatch 0.1.0. --help prints the synopsis, the options and the environment variables. --diagnose reads the configuration, the state directory and the log path, lists the targets and probes nothing; it returns 0 when the configuration is readable and the existing directories are usable. It does not prove that a target is healthy.

Add a target

The shipped configuration declares no target: the service starts and waits. Edit /etc/allwatch/allwatch.conf and add one line per target:

id port policy command...

Use an absolute path for the command, because the service runs as the allwatch user from /var/lib/allwatch. The command is split on spaces without quoting and is not run through a shell. The target must stay in the foreground and must not daemonize.

Then restart the service and follow its log:

sudo systemctl restart allwatch
sudo systemctl status allwatch
sudo journalctl -u allwatch -f

The configuration is read once at startup; there is no hot reload. A deliberate stop of a target is requested by creating its stop file as the service user:

sudo -u allwatch touch /run/allwatch/demo.stop

The file does not stop a running target by itself: it tells the supervisor not to restart it after it ends.

Remove the package

sudo apt remove allwatch
sudo apt purge allwatch

apt remove stops the service but leaves it enabled and keeps the configuration and the log. apt purge also removes the configuration and the service state.

On Fedora, openSUSE Leap and Arch Linux (in this order):

sudo dnf remove allwatch
sudo zypper remove allwatch
sudo pacman -R allwatch

Removal keeps the allwatch user and /var/lib/allwatch, and an edited configuration saved as allwatch.conf.rpmsave or allwatch.conf.pacsave; the package prints the two commands that erase them.