Skip to content

Potential socket error due to systemd-tmpfiles-clean.timer #139

@yuki-tei

Description

@yuki-tei

Hi,
Greetings. I just found by chance to find a potential risk that in Linux 9 the systemd-tmpfiles-clean.timer is acitivated by default and the
socket files own by Pgpool are possibly erased since are placed under /tmp.

[root@pgsup02 ~]# systemctl status systemd-tmpfiles-clean.timer
● systemd-tmpfiles-clean.timer - Daily Cleanup of Temporary Directories
     Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-clean.timer; static)
     Active: active (waiting) since Tue 2025-12-23 05:43:59 JST; 1 day 7h ago
      Until: Tue 2025-12-23 05:43:59 JST; 1 day 7h ago
    Trigger: Wed 2025-12-24 21:14:09 JST; 7h left
   Triggers: ● systemd-tmpfiles-clean.service
       Docs: man:tmpfiles.d(5)
             man:systemd-tmpfiles(8)

Dec 23 05:43:59 pgsup02 systemd[1]: Started Daily Cleanup of Temporary Directories.

[root@pgsup02 ~]# systemctl list-timers systemd-tmpfiles-clean.timer
NEXT                        LEFT    LAST                        PASSED  UNIT                         ACTIVATES
Wed 2025-12-24 21:14:09 JST 7h left Tue 2025-12-23 14:58:21 JST 22h ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service

1 timers listed.
Pass --all to see loaded but inactive timers, too.

My personal suggestion is to modify each socket_dir's default path from '/tmp' to '/var/run/pgpool', which is already the directory that PID file is placed.

Kind Regards,
Yuki Tei

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions