Skip to main content
Version: Next

The tedge service command

tedge service
Run a control action on a service

Usage: tedge service [OPTIONS] <ACTION> <SERVICE_NAME>

Arguments:
<ACTION>
The action to run on the service, e.g. start, stop or restart

Which actions are supported is decided depending on the service type. The type is handled by the init system or by a service plugin.

<SERVICE_NAME>
The name of the service to act on

Options:
--config-dir <CONFIG_DIR>
[env: TEDGE_CONFIG_DIR, default: /etc/tedge]

--type <SERVICE_TYPE>
The type of the service

The type `service` and the type set in `service.type` are handled by the init system configured in system.toml. Any other type is handled by the service plugin. A service plugin with the same name as one of these two types is used instead of the init system.

[default: service]

--debug
Turn-on the DEBUG log level.

If off only reports ERROR, WARN, and INFO, if on also reports DEBUG

--timeout <TIMEOUT>
Timeout for the action to complete, after which a graceful termination starts

[default: 180s]

--forceful-timeout <FORCEFUL_TIMEOUT>
Timeout for forced termination, starting after a graceful timeout expires

[default: 60s]

--log-level <LOG_LEVEL>
Configures the logging level.

One of error/warn/info/debug/trace. Logs with verbosity lower or equal to the selected level will be printed, i.e. warn prints ERROR and WARN logs and trace prints logs of all levels.

Overrides `--debug`

-h, --help
Print help (see a summary with '-h')