NAME
Langertha::Holmgang::Sim::Linux::RedisService - Redis from the service alone (services.redis-server.running) — redis-cli connection, auth, PING, CONFIG GET and redis-server -v
VERSION
version 0.001
SYNOPSIS
# from the Linux simulator
my ( $out, $ok, $gap ) = Langertha::Holmgang::Sim::Linux::RedisService::cli( $dev, \@argv, $host );
my ( $out, $ok, $gap ) = Langertha::Holmgang::Sim::Linux::RedisService::server( $dev, \@argv );
DESCRIPTION
For devices without the Redis state redis (that one is modelled by Langertha::Holmgang::Sim::Linux::Redis); then everything Redis currently uses is in the service itself.
Redis of a Debian 12 device of type linux (cai-platform docs/entwurf-evals.md §3.3.1): the service redis-server with config (/etc/redis/redis.conf); what it currently uses is in its running (read at start/restart).
services:
redis-server: { active: true, config: /etc/redis/redis.conf, running: "bind 127.0.0.1 -::1\nrequirepass …\n" }
redis-cli [-h host] [-p port] [-a password|--pass password] [--user u] [--no-auth-warning] [--raw] command …: the connection succeeds only when Redis is running and listening on the address (last bind line of the running state; without bind all addresses; - before an address means "if present"; the device's own addresses and 127.0.0.1/::1). With requirepass every command needs the right password (else NOAUTH, a wrong one gives WRONGPASS); without a password protected-mode yes rejects connections from outside. Output as without a terminal (over SSH): raw, errors without "(error)". Modelled are PING, CONFIG GET pattern and AUTH; other commands are a gap in the simulation. redis-server -v|--version; options that are not a directive (e.g. --test-config) end like in Redis with FATAL CONFIG FILE ERROR.
installed
True when the device has a service redis-server.
cli
redis-cli …; returns ( $output, $ok, $gap ).
server
redis-server -v|--version; other options without a directive: error like Redis.
SUPPORT
Issues
Please report bugs and feature requests at https://github.com/Getty/langertha-holmgang/issues.
IRC
Join #langertha on irc.perl.org or message Getty directly.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.