If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:svctl

From BoxMatrix


BoxMatrix >> Shell-Commands >> svctl @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

AVM-Command

Goto:   Source  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

svctl controls the services managed by supervisor. More details there.

fw 7.29 help - run without arguments to get help:

root@fritz2:/var/mod/root# svctl -?

Usage:

svctl [CMD] [NAME]

[CMD]
    notify
    reload
    start
    status
    stop
    shutdown

[NAME]
    service name

fw 7.39 help - run without arguments to get help:

root@fritz:/var/mod/root# svctl

Usage:

svctl status [<services>]
svctl start|reload|stop <services>
svctl notify <service>
svctl --quiet is-active|is-failed <service>
svctl shutdown

The notify command uses supervisor.notify.socket to inform supervisor about a successfully started service.
This is used to write notify type supervisor services in scripts.

The remaining commands are sent to supervisor.ctrl.socket.

Examples

svctl stop wifi

replaces:

/etc/init.d/rc.wlan stop

Global status fw 7.29 - this is from a mesh master, online on DSL:

root@fritz1:/var/mod/root# svctl status

[svctl] aha.service active
[svctl] apparmor.service inactive
[svctl] avmipcd.service active
[svctl] avmnexusd.service active
[svctl] boxnotify.service inactive
[svctl] capi-config.service inactive
[svctl] capi.service inactive
[svctl] capitcp.service inactive
[svctl] config.service inactive
[svctl] configd.service inactive
[svctl] cortexa9.service inactive
[svctl] debug.service inactive
[svctl] default-files.service inactive
[svctl] devnodes.service inactive
[svctl] disable_ipv6.service inactive
[svctl] dsl.service active
[svctl] environment.service inactive
[svctl] filesystem.service inactive
[svctl] flash-update.service inactive
[svctl] kpid.service active
[svctl] meshd.service active
[svctl] meshd_config.service inactive
[svctl] mobiled.service inactive
[svctl] modload.service inactive
[svctl] modules-load.service inactive
[svctl] net.service active
[svctl] oemcheck.service failed
[svctl] piglet.service inactive
[svctl] plcd.service failed
[svctl] printer.service inactive
[svctl] psetd.service inactive
[svctl] psupport-init-prenet.service inactive
[svctl] ptest_release.service inactive
[svctl] rcmod.service inactive
[svctl] rekey.service inactive
[svctl] run_clock.service inactive
[svctl] smb2.service active
[svctl] spindown.service inactive
[svctl] sysctl.service inactive
[svctl] tffs.service inactive
[svctl] udev.service active
[svctl] udevadm.service inactive
[svctl] untrustedd.service active
[svctl] usb.service inactive
[svctl] voip.service active
[svctl] voipkpid.service active
[svctl] watchdog.service inactive

As you can see status is of no big help yet, most services are listed inactive. Same list filtered:

root@fritz1:/var/mod/root# svctl status | grep ' active'

[svctl] aha.service active
[svctl] avmipcd.service active
[svctl] avmnexusd.service active
[svctl] dsl.service active
[svctl] kpid.service active
[svctl] meshd.service active
[svctl] net.service active
[svctl] smb2.service active
[svctl] udev.service active
[svctl] untrustedd.service active
[svctl] voip.service active
[svctl] voipkpid.service active

This will likely change in future when more services get migrated from oneshot to notify type.
However, there are better means to get status info in FRITZ!OS.

Source

The names of source files compiled into an executable often help to understand function blocks (and show gaps in the docs).
fw 7.39 source files:

$ strings /bin/svctl | grep -e '\.c$' -e '\.cpp$'

<empty>  

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-03-28 07:36 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
Depends on lib ld.so 33 7.19 - 7.90 Dynamic linker / loader Linux
Depends on lib libbacktrace.so 61 7.24 - 7.90 Crash handler and logger AVM
Depends on lib libbsd.so 39 7.19 - 7.90 BSD functions lacking on GNU systems BSD
Depends on lib libc.so 63 7.19 - 7.90 Standard C library Linux
Depends on lib libsvctl.so 63 7.19 - 7.90 supervisor notification library AVM
Depends on lib libwdt.so 55 7.19 - 7.32 AVM-Watchdogs management API AVM
6 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-03-28 15:46 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Box 5530 Fiber (prx) 7.27 - 7.70 /bin 9.9k - 12.0k
FRITZ!Box 3490 (main) 7.27 - 7.30 /bin 12.3k
FRITZ!Box 3490 (scrpn) 7.27 - 7.30 /bin 12.3k
FRITZ!Box 4020 7.39 /bin 13.5k
FRITZ!Box 4040 7.24 - 7.57 /bin 9.5k - 13.5k
FRITZ!Box 4060 7.26 - 7.57 /bin 9.4k - 13.5k
FRITZ!Box 5490 (main) 7.27 - 7.29 /bin 12.3k
FRITZ!Box 5490 (scrpn) 7.27 - 7.29 /bin 12.3k
FRITZ!Box 5491 (main) 7.27 - 7.29 /bin 12.3k
FRITZ!Box 5491 (scrpn) 7.27 - 7.29 /bin 12.3k
FRITZ!Box 5530 Fiber (boot) 7.21 - 7.80 /bin 9.9k - 12.1k
FRITZ!Box 5530 Fiber (main) 7.21 - 7.80 /bin 9.9k - 13.5k
FRITZ!Box 5590 Fiber (arm) 7.27 - 7.80 /bin 9.4k - 13.5k
FRITZ!Box 5590 Fiber (boot) 7.27 - 7.80 /bin 9.9k - 12.0k
FRITZ!Box 5590 Fiber (prx) 7.27 - 7.80 /bin 9.9k - 12.0k
FRITZ!Box 6430 Cable (arm) 7.29 - 7.57 /bin 8.6k - 13.5k
FRITZ!Box 6430 Cable (atom) 7.29 /bin 11.9k
FRITZ!Box 6490 Cable (arm) 7.19 - 7.57 /bin 6.1k - 13.5k
FRITZ!Box 6490 Cable (atom) 7.19 - 7.51 /bin 9.3k - 11.9k
FRITZ!Box 6590 Cable (arm) 7.19 - 7.57 /bin 6.1k - 13.5k
FRITZ!Box 6590 Cable (atom) 7.19 - 7.51 /bin 9.3k - 11.9k
FRITZ!Box 6591 Cable (arm) 7.19 - 7.57 /bin 9.7k - 13.5k
FRITZ!Box 6591 Cable (atom) 7.19 - 7.57 /bin 11.6k - 13.5k
FRITZ!Box 6660 Cable (arm) 7.19 - 7.57 /bin 9.7k - 13.5k
FRITZ!Box 6660 Cable (atom) 7.19 - 7.57 /bin 11.6k - 13.5k
FRITZ!Box 6670 Cable (arm) 7.57 - 7.61 /bin 9.6k - 13.5k
FRITZ!Box 6670 Cable (atom) 7.61 /bin 13.5k
FRITZ!Box 6690 Cable (arm) 7.28 - 7.57 /bin 9.7k - 13.5k
FRITZ!Box 6690 Cable (atom) 7.28 - 7.57 /bin 12.1k - 13.5k
FRITZ!Box 6820 LTE v1 7.19 - 7.51 /bin 10.1k - 13.5k
FRITZ!Box 6820 LTE v2 7.19 - 7.51 /bin 10.1k - 13.5k
FRITZ!Box 6820 LTE v3 7.19 - 7.57 /bin 10.1k - 12.3k
FRITZ!Box 6840 LTE 7.39 /bin 13.5k
FRITZ!Box 6850 LTE 7.21 - 7.58 /bin 9.5k - 13.5k
FRITZ!Box 6850 5G 7.24 - 7.51 /bin 9.5k - 13.5k
FRITZ!Box 6890 LTE 7.21 - 7.51 /bin 9.9k - 13.5k
FRITZ!Box 6890 LTE v1 7.21 - 7.51 /bin 9.9k - 13.5k
FRITZ!Box 6890 LTE v2 7.21 - 7.51 /bin 9.9k - 13.5k
FRITZ!Box 7272 7.39 /bin 13.5k
FRITZ!Box 7430 7.21 - 7.39 /bin 12.2k - 13.5k
FRITZ!Box 7490 (main) 7.19 - 7.57 /bin 10.1k - 13.5k
FRITZ!Box 7490 (scrpn) 7.19 - 7.51 /bin 10.1k - 12.3k
FRITZ!Box 7510 7.30 - 7.57 /bin 9.3k - 9.4k
FRITZ!Box 7520 7.21 - 7.51 /bin 9.5k - 13.5k
FRITZ!Box 7520 v2 (arm) 7.30 - 7.57 /bin 9.5k - 13.5k
FRITZ!Box 7530 7.19 - 7.56 /bin 9.5k - 13.5k
FRITZ!Box 7530 AX 7.20 - 7.90 /bin 9.6k - 13.5k
FRITZ!Box 7560 7.24 - 7.39 /bin 12.0k - 13.5k
FRITZ!Box 7580 7.21 - 7.30 /bin 12.0k
FRITZ!Box 7583 7.21 - 7.57 /bin 9.9k - 12.0k
FRITZ!Box 7583 VDSL 7.19 - 7.31 /bin 12.0k
FRITZ!Box 7590 7.19 - 7.90 /bin 9.9k - 13.5k
FRITZ!Box 7590 AX 7.19 - 7.90 /bin 9.9k - 13.5k
FRITZ!Smart Gateway 7.39 - 7.59 /bin 9.4k
FRITZ!Repeater 600 7.21 - 7.58 /bin 10.1k - 13.5k
FRITZ!Repeater 600 v2 7.19 - 7.58 /bin 10.1k - 12.3k
FRITZ!Repeater 1200 7.19 - 7.58 /bin 9.5k - 13.5k
FRITZ!Repeater 1200 AX 7.27 - 7.57 /bin 9.3k - 9.4k
FRITZ!WLAN Repeater 1750E 7.29 - 7.39 /bin 12.2k - 13.5k
FRITZ!Repeater 2400 7.19 - 7.58 /bin 10.1k - 13.5k
FRITZ!Repeater 3000 7.19 - 7.58 /bin 9.5k - 13.5k
FRITZ!Repeater 3000 AX 7.39 - 7.57 /bin 9.4k - 13.5k
FRITZ!Repeater 6000 7.19 - 7.57 /bin 9.4k - 12.1k
FRITZ!Powerline 1240 AX 7.51 - 7.57 /bin 9.4k
FRITZ!Powerline 1260E 7.21 - 7.57 /bin 9.5k - 13.5k
FRITZ!Powerline 1260 7.27 - 7.57 /bin 9.5k - 12.1k
66 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-03-28 07:36 GMT.

Firmware Symbol
7.19 - 7.90 append_suffix
7.19 - 7.90 main
7.19 - 7.90 print_result
7.39 - 7.90 transaction
4 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

s