# urbestack-service-set

First published 14 Oct 2026 (release 0.2.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-service-set --name DAEMON [--watched on|off] [--rounds N] [--timeout SECONDS] [--depth answer|process] [--at-boot]
```

## Description

Configures monitoring and startup at boot for a daemon. Specify at least one setting for an installed daemon.

--watched controls whether the monitor watches the daemon. It accepts on, 1, true and yes to turn monitoring on, and off, 0, false and no to turn it off. These values are case-insensitive. UrbeStack always watches its own daemons.

--rounds sets how many consecutive rounds without an answer trigger a restart, from 1 to 10. --timeout sets how long the monitor waits for a health check to answer, from 1 to 30 seconds. --depth answer uses the daemon's own health check. --depth process checks only whether the process is running.

--at-boot enables the systemd unit for future boots without starting the daemon now. If the daemon already starts at boot, the command reports an error and discards any monitor settings supplied with --at-boot.

## Same in the API

- [PATCH /services/{name}](https://urbestack.com/docs/api/patch-services-name.md): Configure monitoring and startup at boot for a daemon

## Command family: service

- [urbestack-service-check](https://urbestack.com/docs/commands/urbestack-service-check.md): Runs one monitoring round for every watched daemon, or for a single daemon with --name.
- [urbestack-service-disable](https://urbestack.com/docs/commands/urbestack-service-disable.md): Stops a daemon and prevents it from starting at boot or after UrbeStack updates.
- [urbestack-service-list](https://urbestack.com/docs/commands/urbestack-service-list.md): Lists the daemons UrbeStack runs or relies on.
- [urbestack-service-log](https://urbestack.com/docs/commands/urbestack-service-log.md): Shows the last lines of output from journalctl -u for a daemon's systemd unit and from the daemon's own log if it is readable.
- [urbestack-service-restart](https://urbestack.com/docs/commands/urbestack-service-restart.md): Restarts a daemon and waits for it to pass its health check.
- [urbestack-service-start](https://urbestack.com/docs/commands/urbestack-service-start.md): Starts a daemon and waits for it to pass its health check.
- [urbestack-service-stop](https://urbestack.com/docs/commands/urbestack-service-stop.md): Stops a daemon and records who stopped it.
