It does not work to switch LinuxServer dockers on and off from the WebGUI, how can I do it when I ssh into kodi?
Is there any command what does the same, when I switch on/off a docker on my TV?
It does not work to switch LinuxServer dockers on and off from the WebGUI, how can I do it when I ssh into kodi?
Is there any command what does the same, when I switch on/off a docker on my TV?
I can't understand you, on the one hand there is the docker addon, this is a service that manages virtual services (starts, stops, deletes, ... services such as the tvheadend television server, the syncthing backup and synchronization service, sftpgo storage server , and many others. Another important service/addon is portainer (it establishes a graphical web frontend interface for docker). And finally there are the services that work within docker and that within libreelec are included in the LinuxServer repository. Another alternative is use the information given by https://hub.docker.com/, https://github.com/, ..., to manually install via SSH any docker image/container that is no longer limited to just LinuxServer.io.
docker addon, this is a service
I'm referring to that one.
Any chance to start the different services (docker container) from the command line?
For example SWAG. I know that its settings are located in
/storage/.kodi/userdata/addon_data/docker.linuxserver.swag/settings.xml
and these are parsed to docker as coded in libreelec-addon-repo/docker.linuxserver.swag at master · linuxserver/libreelec-addon-repo (github.com).
I want to play around with swag: add support for additional args by aptalca · Pull Request #92 · linuxserver/libreelec-addon-repo (github.com) but via command line only.
Is it better explained now?
You can use systemctl :
systemctl start docker.linuxserver.swag
start
stop
restart
status
reload
reset-failed
...
ANSWER
I have just figured it, is done with the above referenced simple bash script, so you enter
`/storage/.kodi/addons/docker.linuxserver.swag/bin/docker.linuxserver.swag`
Display MoreYou can use systemctl :
systemctl start docker.linuxserver.swag
start
stop
restart
status
reload
reset-failed
...
oh thx, overlooked that answer
but it won't reload data from settings.xml?
Yep, systemctl start docker.linuxserver.swag will run the script you found.
and systemctl stop docker.linuxserver.swag will run the other stop script.
It's all setup with https://github.com/linuxserver/li…er.swag.service
And because of StartLimitBurst=3 if you restart 3 times in a short moment, you'll have to run the reset-failed command to be able to start it again.
Thanks, I understood. In my case, I do not use the LinuxServer.io repository and the docker.linuxserver.xxx services do not appear in the list of systemctl services. Stopping a service is also easy for me: (1) via portainer web http://<libreelec-ip>:9000, or (2) via SSH by running the command 'docker stop 8384-syncthing' to stop my service named as ' 8384-syncthing'. This way I am not limited to LinuxServer.io and can use the same commands on any operating system.
I created services for my *arr softwares in the same linuxserver way.
So they are all added in the docker.linuxserver.updater list to be updated.
I also use docker compose files.
I tried LibreELEC:~/.kodi/addons/docker.linuxserver.swag/bin # docker.linuxserver.swag to see the output live but cannot exit when the starts fails. Only stopping via Portain GUI helps to exit it.
How can I exit docker.linuxserver.swag if the script fails/get stuck?
Ctrl + C
or kill the process.
you can use systemctl status docker.linuxserver.swag to see the output after a systemctl start docker.linuxserver.swag command.
To clarify, I don't believe there is a way to disable/enable/restart addons in kodi/le from cli.
However, as others pointed out, the linuxserver docker addons use systemd so if what you're after is simple stop/start, you can do that via systemctl. But you won't be able to change addon settings in between.
The proper and the only supported way is through the gui.
Ctrl + C
I tried that but terminal is not reacting, I can write what ever I like, no reaction.
Only ending the container using portainer gets me out of this
I also use docker compose files.
how did you installed docker-compose? Did you followed Docker compose on LE ? - General Support - LibreELEC Forum?
how did you installed docker-compose? Did you followed Docker compose on LE ? - General Support - LibreELEC Forum?
I followed this : https://djismgaming.wordpress.com/2019/09/17/doc…e-on-libreelec/
Is the procedure as I linked 😃.
By the way, I updated the procedure to match the current version.