eriksjolund / systemd-restart-service-fdstore

Example systemd user service that uses FDSTORE=1
MIT License
1 stars 0 forks source link

upcase-podman@demo.service does not work #1

Open eriksjolund opened 2 years ago

eriksjolund commented 2 years ago
  1. Run the commands

    podman build -t upcase .
    cp -r upcase-podman*  ~/.config/systemd/user
    systemctl --user daemon-reload
    systemctl --user start upcase-podman@demo.socket
  2. Try out the service

    $ socat readline tcp4:127.0.0.1:3011
    aa
    AA
    bbb
    BBB
    $

See log log.txt from

journalctl -xe --user --no-pager  -u upcase-podman@demo.service  
eriksjolund commented 2 years ago

It still fails, but it looks a bit more promising when replacing --sdnotify=conmon with --sdnotify=container

$ grep with_fds /tmp/log.txt 
Mar 20 15:02:35 asus upcase-demo[127287]: sd_pid_notify_with_fds() returned  0
$ grep with_fds /tmp/log2.txt 
Mar 20 16:50:50 asus upcase-demo[130999]: sd_pid_notify_with_fds() returned  1
$ 

log2.txt

eriksjolund commented 2 years ago

I upgraded to Podman 4.0.2

$ rpm -q podman
podman-4.0.2-5.fc35.x86_64

and ran the test once again.

$ socat readline tcp4:127.0.0.1:3011
aaa
bbb
AAA
BBB
ccc
CCC
$ 

log3.txt