Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#68795 - [bftpd] 5.6-2 service restart fails with current config

Attached to Project: Arch Linux
Opened by Arseny Vakhrushev (waxar) - Monday, 30 November 2020, 03:25 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 21 April 2021, 10:31 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Right after installation, once bftpd.service has been started and stopped, it can't be (re)started again. I guess there is some issue with the current service type (forking). Anyways, please see below:


21:31:53 root@nuc ~ # systemctl status bftpd
● bftpd.service - bftpd daemon
Loaded: loaded (/usr/lib/systemd/system/bftpd.service; disabled; vendor preset: disabled)
Active: inactive (dead)

21:31:56 root@nuc ~ # systemctl start bftpd
21:32:01 root@nuc ~ # systemctl status bftpd
● bftpd.service - bftpd daemon
Loaded: loaded (/usr/lib/systemd/system/bftpd.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2020-11-27 21:32:01 PST; 1s ago
Process: 478 ExecStart=/usr/bin/bftpd -d (code=exited, status=0/SUCCESS)
Main PID: 480 (bftpd)
Tasks: 1 (limit: 38166)
Memory: 548.0K
CGroup: /system.slice/bftpd.service
└─480 /usr/bin/bftpd -d

Nov 27 21:32:01 nuc systemd[1]: Starting bftpd daemon...
Nov 27 21:32:01 nuc systemd[1]: Started bftpd daemon.

21:32:02 root@nuc ~ # ps aux | grep bftp
root 480 0.0 0.0 3028 140 ? S 21:32 0:00 /usr/bin/bftpd -d
root 484 0.0 0.0 6380 2340 pts/0 S+ 21:32 0:00 grep bftp

21:32:13 root@nuc ~ # systemctl stop bftpd
21:32:20 root@nuc ~ # systemctl status bftpd
● bftpd.service - bftpd daemon
Loaded: loaded (/usr/lib/systemd/system/bftpd.service; disabled; vendor preset: disabled)
Active: inactive (dead)

Nov 27 21:32:01 nuc systemd[1]: Starting bftpd daemon...
Nov 27 21:32:01 nuc systemd[1]: Started bftpd daemon.
Nov 27 21:32:20 nuc systemd[1]: Stopping bftpd daemon...
Nov 27 21:32:20 nuc systemd[1]: bftpd.service: Succeeded.
Nov 27 21:32:20 nuc systemd[1]: Stopped bftpd daemon.

21:32:23 root@nuc ~ # ps aux | grep bftp
root 491 0.0 0.0 6380 2396 pts/0 S+ 21:32 0:00 grep bftp

21:32:26 root@nuc ~ # systemctl start bftpd
21:32:30 root@nuc ~ # systemctl status bftpd
● bftpd.service - bftpd daemon
Loaded: loaded (/usr/lib/systemd/system/bftpd.service; disabled; vendor preset: disabled)
Active: inactive (dead)

Nov 27 21:32:01 nuc systemd[1]: Starting bftpd daemon...
Nov 27 21:32:01 nuc systemd[1]: Started bftpd daemon.
Nov 27 21:32:20 nuc systemd[1]: Stopping bftpd daemon...
Nov 27 21:32:20 nuc systemd[1]: bftpd.service: Succeeded.
Nov 27 21:32:20 nuc systemd[1]: Stopped bftpd daemon.
Nov 27 21:32:30 nuc systemd[1]: Starting bftpd daemon...
Nov 27 21:32:30 nuc systemd[1]: Started bftpd daemon.
Nov 27 21:32:30 nuc systemd[1]: bftpd.service: Succeeded.

21:32:32 root@nuc ~ # ps aux | grep bftp
root 500 0.0 0.0 6380 2404 pts/0 S+ 21:32 0:00 grep bftp

21:32:36 root@nuc ~ # systemctl start bftpd
21:32:38 root@nuc ~ # systemctl status bftpd
● bftpd.service - bftpd daemon
Loaded: loaded (/usr/lib/systemd/system/bftpd.service; disabled; vendor preset: disabled)
Active: inactive (dead)

Nov 27 21:32:01 nuc systemd[1]: Started bftpd daemon.
Nov 27 21:32:20 nuc systemd[1]: Stopping bftpd daemon...
Nov 27 21:32:20 nuc systemd[1]: bftpd.service: Succeeded.
Nov 27 21:32:20 nuc systemd[1]: Stopped bftpd daemon.
Nov 27 21:32:30 nuc systemd[1]: Starting bftpd daemon...
Nov 27 21:32:30 nuc systemd[1]: Started bftpd daemon.
Nov 27 21:32:30 nuc systemd[1]: bftpd.service: Succeeded.
Nov 27 21:32:38 nuc systemd[1]: Starting bftpd daemon...
Nov 27 21:32:38 nuc systemd[1]: Started bftpd daemon.
Nov 27 21:32:38 nuc systemd[1]: bftpd.service: Succeeded.

21:32:41 root@nuc ~ # systemctl start bftpd
21:32:43 root@nuc ~ # systemctl status bftpd
● bftpd.service - bftpd daemon
Loaded: loaded (/usr/lib/systemd/system/bftpd.service; disabled; vendor preset: disabled)
Active: inactive (dead)

Nov 27 21:32:20 nuc systemd[1]: Stopped bftpd daemon.
Nov 27 21:32:30 nuc systemd[1]: Starting bftpd daemon...
Nov 27 21:32:30 nuc systemd[1]: Started bftpd daemon.
Nov 27 21:32:30 nuc systemd[1]: bftpd.service: Succeeded.
Nov 27 21:32:38 nuc systemd[1]: Starting bftpd daemon...
Nov 27 21:32:38 nuc systemd[1]: Started bftpd daemon.
Nov 27 21:32:38 nuc systemd[1]: bftpd.service: Succeeded.
Nov 27 21:32:43 nuc systemd[1]: Starting bftpd daemon...
Nov 27 21:32:43 nuc systemd[1]: Started bftpd daemon.
Nov 27 21:32:43 nuc systemd[1]: bftpd.service: Succeeded.
This task depends upon

Comment by Arseny Vakhrushev (waxar) - Monday, 30 November 2020, 03:28 GMT
If I modify the service allowing systemd to fork (seems much reasonable than guessing child's PID), the issue is gone:

21:32:44 root@nuc ~ # systemctl edit --full bftpd
21:33:40 root@nuc ~ # systemctl cat bftpd
# /etc/systemd/system/bftpd.service
[Unit]
Description=bftpd daemon

[Service]
ExecStart=/usr/bin/bftpd -D

[Install]
WantedBy=multi-user.target

21:33:53 root@nuc ~ # systemctl start bftpd
21:33:57 root@nuc ~ # systemctl status bftpd
● bftpd.service - bftpd daemon
Loaded: loaded (/etc/systemd/system/bftpd.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2020-11-27 21:33:57 PST; 1s ago
Main PID: 538 (bftpd)
Tasks: 1 (limit: 38166)
Memory: 328.0K
CGroup: /system.slice/bftpd.service
└─538 /usr/bin/bftpd -D

Nov 27 21:33:57 nuc systemd[1]: Started bftpd daemon.

21:33:59 root@nuc ~ # systemctl stop bftpd
21:34:02 root@nuc ~ # systemctl status bftpd
● bftpd.service - bftpd daemon
Loaded: loaded (/etc/systemd/system/bftpd.service; disabled; vendor preset: disabled)
Active: inactive (dead)

Nov 27 21:32:38 nuc systemd[1]: Starting bftpd daemon...
Nov 27 21:32:38 nuc systemd[1]: Started bftpd daemon.
Nov 27 21:32:38 nuc systemd[1]: bftpd.service: Succeeded.
Nov 27 21:32:43 nuc systemd[1]: Starting bftpd daemon...
Nov 27 21:32:43 nuc systemd[1]: Started bftpd daemon.
Nov 27 21:32:43 nuc systemd[1]: bftpd.service: Succeeded.
Nov 27 21:33:57 nuc systemd[1]: Started bftpd daemon.
Nov 27 21:34:02 nuc systemd[1]: Stopping bftpd daemon...
Nov 27 21:34:02 nuc systemd[1]: bftpd.service: Succeeded.
Nov 27 21:34:02 nuc systemd[1]: Stopped bftpd daemon.

21:34:04 root@nuc ~ # systemctl start bftpd
21:34:07 root@nuc ~ # systemctl status bftpd
● bftpd.service - bftpd daemon
Loaded: loaded (/etc/systemd/system/bftpd.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2020-11-27 21:34:07 PST; 1s ago
Main PID: 548 (bftpd)
Tasks: 1 (limit: 38166)
Memory: 312.0K
CGroup: /system.slice/bftpd.service
└─548 /usr/bin/bftpd -D

Nov 27 21:34:07 nuc systemd[1]: Started bftpd daemon.

Loading...