Hi Eric,
I read your article on Fedora Magazine – "Manage your passwords with Bitwarden and Podman"[1], which is really helpful! Thank you very much!
Following your approach, I tried on my Fedora 30, step by step, which led to a failure, unfortunately. At last, it turned out that maybe I should do a little modification to your `bitwarden.service` file:
``` [Unit] Description=Bitwarden Podman container Wants=syslog.service
[Service] Type=forking User=my name Group=my group TimeoutStartSec=0 ExecStart=/usr/bin/podman start 'bitwarden' ExecStop=-/usr/bin/podman stop -t 10 'bitwarden' Restart=always RestartSec=30s KillMode=none
[Install] WantedBy=multi-user.target ```
- I added `Type=forking` below the `[Service]` line or the process would exited unexpectedly - I changed `ExecStart` from `podman run` to `podman start` which would make sure podman start the `bitwarden` container created previously
I ain't a pro, and I'm not sure whether the modification is necessary for others. If needed, I think this article could be updated.
[1] https://fedoramagazine.org/manage-your-passwords-with-bitwarden-and-podman/
Hi Pany!
The podman run was an oversight on my part. Changing it to podman start is something we definitely should change.
I'm not sure about the Type forking. When I looked around people either used nothing - which defaults to simple - or used exec. Though it seems to work just fine when I'm testing. If you know more than me we can change that too, I see no harm in it
Thanks,
Eric Gustavsson
He / Him
Associate Software Engineer
Red Hat https://www.redhat.com
IM: Telegram: @SpyTec https://www.redhat.com
On Tue, 6 Aug 2019 at 04:14, Pany pany@fedoraproject.org wrote:
Hi Eric,
I read your article on Fedora Magazine – "Manage your passwords with Bitwarden and Podman"[1], which is really helpful! Thank you very much!
Following your approach, I tried on my Fedora 30, step by step, which led to a failure, unfortunately. At last, it turned out that maybe I should do a little modification to your `bitwarden.service` file:
[Unit] Description=Bitwarden Podman container Wants=syslog.service [Service] Type=forking User=my name Group=my group TimeoutStartSec=0 ExecStart=/usr/bin/podman start 'bitwarden' ExecStop=-/usr/bin/podman stop -t 10 'bitwarden' Restart=always RestartSec=30s KillMode=none [Install] WantedBy=multi-user.target
- I added `Type=forking` below the `[Service]` line or the process
would exited unexpectedly
- I changed `ExecStart` from `podman run` to `podman start` which
would make sure podman start the `bitwarden` container created previously
I ain't a pro, and I'm not sure whether the modification is necessary for others. If needed, I think this article could be updated.
[1] https://fedoramagazine.org/manage-your-passwords-with-bitwarden-and-podman/
Hi Eric,
Sorry for the delay to reply.
I did another test, on a fresh new installed F30 minimal in VirtualBox, with dnf updated OS and newest podman installed [0].
Without `Type=forking`, the podman process would exit, see the log [1].
Then I added `Type=forking` into bitwarden.service and restarted it, and it would run well, see the log [2].
Maybe I did something wrong? Please let me know.
[0] https://paste.fedoraproject.org/paste/XP-GatxzClxmt5kDeMqlkw [1] https://paste.fedoraproject.org/paste/YqC73Z00eXI8KcxNyuMpNQ [2] https://paste.fedoraproject.org/paste/888~DdQHEbntSkGbVynmsQ
Hi Pany,
I think you're probably right, I vote for changing it to Type=forking as well. Though since the article is live we have to wait for someone on the magazine board to edit it :) Might take a while since FLOCK is this week and quite a few of the board members are going
Eric Gustavsson
He / Him
Associate Software Engineer
Red Hat https://www.redhat.com
IM: Telegram: @SpyTec https://www.redhat.com
On Wed, 7 Aug 2019 at 18:41, Pany pany@fedoraproject.org wrote:
Hi Eric,
Sorry for the delay to reply.
I did another test, on a fresh new installed F30 minimal in VirtualBox, with dnf updated OS and newest podman installed [0].
Without `Type=forking`, the podman process would exit, see the log [1].
Then I added `Type=forking` into bitwarden.service and restarted it, and it would run well, see the log [2].
Maybe I did something wrong? Please let me know.
[0] https://paste.fedoraproject.org/paste/XP-GatxzClxmt5kDeMqlkw [1] https://paste.fedoraproject.org/paste/YqC73Z00eXI8KcxNyuMpNQ [2] https://paste.fedoraproject.org/paste/888~DdQHEbntSkGbVynmsQ
-- Best wishes! Pany
On Tue, Aug 6, 2019 at 4:00 PM Eric Gustavsson egustavs@redhat.com wrote:
Hi Pany!
The podman run was an oversight on my part. Changing it to podman start is something we definitely should change.
I'm not sure about the Type forking. When I looked around people either used nothing - which defaults to simple - or used exec. Though it seems to work just fine when I'm testing. If you know more than me we can change that too, I see no harm in it
Thanks,
Eric Gustavsson
He / Him
Associate Software Engineer
Red Hat https://www.redhat.com
IM: Telegram: @SpyTec https://www.redhat.com
On Tue, 6 Aug 2019 at 04:14, Pany pany@fedoraproject.org wrote:
Hi Eric,
I read your article on Fedora Magazine – "Manage your passwords with Bitwarden and Podman"[1], which is really helpful! Thank you very much!
Following your approach, I tried on my Fedora 30, step by step, which led to a failure, unfortunately. At last, it turned out that maybe I should do a little modification to your `bitwarden.service` file:
[Unit] Description=Bitwarden Podman container Wants=syslog.service [Service] Type=forking User=my name Group=my group TimeoutStartSec=0 ExecStart=/usr/bin/podman start 'bitwarden' ExecStop=-/usr/bin/podman stop -t 10 'bitwarden' Restart=always RestartSec=30s KillMode=none [Install] WantedBy=multi-user.target
- I added `Type=forking` below the `[Service]` line or the process
would exited unexpectedly
- I changed `ExecStart` from `podman run` to `podman start` which
would make sure podman start the `bitwarden` container created previously
I ain't a pro, and I'm not sure whether the modification is necessary for others. If needed, I think this article could be updated.
[1] https://fedoramagazine.org/manage-your-passwords-with-bitwarden-and-podman/
On Thu, 8 Aug 2019, Pany wrote:
Without `Type=forking`, the podman process would exit, see the log [1].
With Type=simple, you flag on the daemon to not do it's own forking. Typically it is '-f' for foreground. You'll have to check the man page for the correct option.
Then I added `Type=forking` into bitwarden.service and restarted it, and it would run well, see the log [2].
Maybe I did something wrong? Please let me know.
When the daemon does its own forking, they you also need to communicate the PID file to systemd.
Ok, thanks for the clarification.
On Thu, Aug 8, 2019 at 2:14 AM Stuart D. Gathman stuart@gathman.org wrote:
On Thu, 8 Aug 2019, Pany wrote:
Without `Type=forking`, the podman process would exit, see the log [1].
With Type=simple, you flag on the daemon to not do it's own forking. Typically it is '-f' for foreground. You'll have to check the man page for the correct option.
Then I added `Type=forking` into bitwarden.service and restarted it, and it would run well, see the log [2].
Maybe I did something wrong? Please let me know.
When the daemon does its own forking, they you also need to communicate the PID file to systemd.
-- Stuart D. Gathman stuart@gathman.org "Confutatis maledictis, flamis acribus addictis" - background song for a Microsoft sponsored "Where do you want to go from here?" commercial.
magazine@lists.fedoraproject.org