Redis after reboot: separate startup and readiness verification
Enable autostart for configured Redis, retain its data, and verify the process and authenticated protocol after reboot.
Redis is already configured, but persistent autostart requires a separate approved step. We work on an isolated local Debian VM and preserve original installation and activation approvals. This operation does not initialize data again.
Starting state and authority
The run has prepared one Redis80 role. Original foundation, refresh, packages, configuration and activation are complete. Full history contains nine actual records and two boundaries: the first reboot and the PHP repository. DATA_ACTIVATION_REFERENCES retains the original activation plan and completion fingerprint.
HISTORY_INPUTS=(
--root-env-file "$ORIGINAL_ROOT_ENV"
--env-file "$ADMIN_ENV"
--request-file "$FIRST_POSTBOOT_REQUEST"
--current-request-file "$STARTUP_BOOT_REQUEST"
--references-file "$RUNTIME_REFERENCES"
--fpm-file "$FPM_PROFILE"
--key-file "$PUBLIC_REPOSITORY_KEY"
--key-sha256 "$PUBLIC_REPOSITORY_KEY_SHA256"
--firewall-pin-file "$FIREWALL_REFERENCE"
)
REDIS_INPUTS=(
"${HISTORY_INPUTS[@]}"
--data-activations-file "$DATA_ACTIVATION_REFERENCES"
)
The startup plan
"$DEPLOY_CLI" host runtime-startup redis80 prepared-plan \
"${REDIS_INPUTS[@]}" --plan-file "$REDIS_STARTUP_PLAN"
Before apply, review the target server, current boot, nine new paths and original approvals. Take variable SHA-256 values from retained CLI results. A request selecting MySQL for this Redis history has already been tested: the CLI refuses it before an SSH connection.
"$DEPLOY_CLI" host runtime-startup redis80 prepared-apply \
"${REDIS_INPUTS[@]}" --plan-file "$REDIS_STARTUP_PLAN" \
--plan-sha256 "$REDIS_STARTUP_PLAN_SHA256" --approve-privileges
"$DEPLOY_CLI" host runtime-startup redis80 prepared-verify \
"${REDIS_INPUTS[@]}" --plan-file "$REDIS_STARTUP_PLAN" \
--plan-sha256 "$REDIS_STARTUP_PLAN_SHA256"
The firewall dependency
The /etc/systemd/system/deploy-cli-redis80.service.d/80-deploy-cli-startup.conf drop-in establishes a persistent-firewall dependency. Startup ordering is supplemented by actual Redis checks: the CLI reads the process, configuration, loopback listener and protocol responses.
[Unit]
Requires=deploy-cli-firewall-boot.service
After=deploy-cli-firewall-boot.service
A new boot and a live protocol
Boot verification requires a separate independent console confirmation for the new boot. Keep the initial request to reconstruct the original approval. The command checks the new process and protocol; it does not start Redis again.
"$DEPLOY_CLI" host runtime-startup redis80 prepared-boot-verify \
"${REDIS_INPUTS[@]}" --plan-file "$REDIS_STARTUP_PLAN" \
--plan-sha256 "$REDIS_STARTUP_PLAN_SHA256" \
--manifest-sha256 "$REDIS_STARTUP_MANIFEST_SHA256" \
--new-boot-request-file "$NEW_BOOT_REQUEST" \
--output-file "$REDIS_NEW_BOOT_PROOF"
systemctl show deploy-cli-redis80.service \
--property=Id,ActiveState,SubState,UnitFileState,Requires,After
redis-cli --user setup_ops --askpass -h 127.0.0.1 -p 6379 PING
Manual PING requires the setup_ops ACL user and its private password. The --askpass option prompts in the terminal; do not put the value in command arguments. The default user is disabled in this configuration.
The result after reboot
After a separate reboot, Redis was running and remained enabled for subsequent boots. Verification read the process again and obtained authenticated protocol responses over loopback. Original data and configuration were retained. A separate manual PING helps check service availability but does not replace those checks.
Selected actual fields from a separate systemd read after reboot:
Id=deploy-cli-redis80.service
ActiveState=active
SubState=running
UnitFileState=enabled