Appearance
Install & Setup Commands
This section documents the first-run lifecycle commands in util.sh.
safecall system install
Phase 1 installer. It creates an installation directory, installs the binary, places CLI scripts, writes default configuration, and records checksums/version.
Usage
bash
sudo ./util.sh system install
sudo ./util.sh system install --dir /opt/safecall-prod
sudo ./util.sh system install --service-name safecall-prod
sudo ./util.sh system install --offline-dir /path/to/offline-bundleOptions
| Option | Meaning |
|---|---|
--dir <directory> | Installation target directory (default /opt/safecall) |
--service-name <name> | Service/CLI name for multi-instance deployments |
--offline-dir <path> | Use a local offline bundle instead of update server downloads |
When to use
- New installation on a host.
- Re-installing into a new directory for parallel instances.
- Offline deployment from pre-downloaded artifacts.
Important behavior
- Does not complete service/proxy/cron setup by itself.
- Writes
.service_nameif--service-nameis provided so later commands use the same service identity. - Generates
util.sh, storesversion.txt, and recordschecksums.json.
safecall system setup
Phase 2 setup wizard. It applies service/runtime choices and optional integrations.
Usage
bash
sudo ./util.sh system setup
sudo ./util.sh system setup --defaults
sudo ./util.sh system setup --service-name safecall-prodOptions
| Option | Meaning |
|---|---|
--defaults | Accept default answers and skip interactive prompts |
--service-name <name> | Override persisted service name |
What setup does
- Loads existing config when present (supports
config/main.config.jsonand legacymain.config.json). - Merges defaults + existing config + wizard choices.
- Persists service name into
.service_name. - Optionally registers systemd service.
- Optionally runs reverse proxy integration.
- Optionally sets up daily update cron.
- Runs self-test.
Feature selection behavior
Setup supports these server feature profiles:
bridgenavigationalertingrtlssensorssafecall(all server features)bridge + safecall
Use this when deploying partial feature sets.
safecall system systemd
Registers/rebuilds systemd service and CLI symlink.
Usage
bash
sudo ./util.sh system systemd
sudo ./util.sh system systemd --user safecallOption
| Option | Meaning |
|---|---|
--user <user> | Run service as a specific Unix user |
What it configures
/etc/systemd/system/<service_name>.service/usr/local/bin/<service_name> -> <install_dir>/util.shsystemctl daemon-reloadandsystemctl enable --now <service_name>
When to use
- After changing service user.
- After manual service file damage.
- During recovery workflows when you want to recreate service wiring only.