Why systemd running in rootless container fails to stop services like postgresql on Red Hat Enterprise Linux 8 ?
Issue
- Why systemd running in rootless container fails to stop services like postgresql on Red Hat Enterprise Linux 8 ?
*For postgresql service, commandsystemctl stop postgresql
hangs. RequireCTRL-C
andsystemctl daemon-rexec
to clear the deactivating state
[root@3fa42913d76b /]# systemctl stop postgresql
^C
[root@3fa42913d76b /]# systemctl status postgresql
● postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; vendor preset: disabled)
Active: deactivating (final-sigkill) since Fri 2020-11-27 10:45:55 UTC; 2min 18s ago
Process: 140 ExecStart=/usr/bin/postmaster -D ${PGDATA} (code=exited, status=0/SUCCESS)
Process: 138 ExecStartPre=/usr/libexec/postgresql-check-db-dir postgresql (code=exited, status=0/SUCCESS)
Main PID: 140 (code=exited, status=0/SUCCESS)
CGroup: /user.slice/user-1001.slice/user@1001.service/user.slice/podman-14685.scope/3fa42913d76bc5347cebf975023f043f705dc89f6f0d3361129a967c87256b56/system.slice/postgresql.service
Environment
- Red Hat Enterprise Linux 8
- rootless systemd container running postgresql service
- podman-1.9.3-2.module+el8.2.1+6867+366c07d6.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.