mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-21 14:41:12 +02:00
Fixes #1565 Examples: ``` $ osctl list -l MODE SIZE(B) LASTMOD NAME drwxr-xr-x 4096 Dec 17 16:37:19 . -rwxr-xr-x 0 Dec 17 16:37:19 .dockerenv drwxr-xr-x 4096 Dec 17 16:35:20 bin drwxr-xr-x 4096 Dec 17 16:37:20 boot drwxr-xr-x 5480 Dec 17 16:37:19 dev drwxr-xr-x 4096 Dec 17 16:37:19 etc drwxr-xr-x 4096 Dec 17 16:35:19 lib drwxr-xr-x 4096 Dec 17 16:35:21 mnt drwxr-xr-x 4096 Dec 17 16:39:17 opt dr-xr-xr-x 0 Dec 17 16:37:19 proc drwxr-x--- 4096 Dec 5 06:39:44 root drwxr-xr-x 4096 Dec 17 16:39:06 run drwxr-xr-x 4096 Dec 17 16:35:20 sbin dr-xr-xr-x 0 Dec 17 16:37:19 sys dtrwxrwxrwx 4096 Dec 17 16:38:05 tmp drwxr-xr-x 4096 Dec 17 16:35:21 usr drwxr-xr-x 4096 Dec 17 16:37:19 var ``` ``` $ osctl list -lH MODE SIZE(B) LASTMOD NAME drwxr-xr-x 4.1 kB 18 minutes ago . -rwxr-xr-x 0 B 18 minutes ago .dockerenv drwxr-xr-x 4.1 kB 20 minutes ago bin drwxr-xr-x 4.1 kB 18 minutes ago boot drwxr-xr-x 5.5 kB 18 minutes ago dev drwxr-xr-x 4.1 kB 18 minutes ago etc drwxr-xr-x 4.1 kB 20 minutes ago lib drwxr-xr-x 4.1 kB 20 minutes ago mnt drwxr-xr-x 4.1 kB 16 minutes ago opt dr-xr-xr-x 0 B 18 minutes ago proc drwxr-x--- 4.1 kB 1 week ago root drwxr-xr-x 4.1 kB 16 minutes ago run drwxr-xr-x 4.1 kB 20 minutes ago sbin dr-xr-xr-x 0 B 18 minutes ago sys dtrwxrwxrwx 4.1 kB 17 minutes ago tmp drwxr-xr-x 4.1 kB 20 minutes ago usr drwxr-xr-x 4.1 kB 18 minutes ago var ``` Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
999 B
999 B
osctl service
Retrieve the state of a service (or all services), control service state
Synopsis
Service control command. If run without arguments, lists all the services and their state. If service ID is specified, default action 'status' is executed which shows status of a single list service. With actions 'start', 'stop', 'restart', service state is updated respectively.
osctl service [<id> [start|stop|restart|status]] [flags]
Options
-h, --help help for service
Options inherited from parent commands
--context string Context to be used in command
-e, --endpoints strings override default endpoints in Talos configuration
-n, --nodes strings target the specified nodes
--talosconfig string The path to the Talos configuration file (default "/home/user/.talos/config")
SEE ALSO
- osctl - A CLI for out-of-band management of Kubernetes nodes created by Talos