You are not logged in.

#1 2016-06-18 13:41:04

McKlau
Member
Registered: 2014-02-16
Posts: 9

Bftpd not starting

Well, Im posting this here because I think its an easy answer for anyone (but me, of course). Im pretty sure Im close to the answer but cant find it googling, vsftpd nerfs good searches for bftpd.

Installed bftpd, configured, started and enabled. It works nice but it doesnt start always on boot. Sometimes its not active and "systemctl status bftpd" throws this:

● bftpd.service - bftpd daemon
   Loaded: loaded (/usr/lib/systemd/system/bftpd.service; enabled; vendor preset: disabled)
   Active: inactive (dead) since sáb 2016-06-18 13:33:35 CEST; 8min ago
  Process: 223 ExecStart=/usr/bin/bftpd -d (code=exited, status=0/SUCCESS)
 Main PID: 224 (code=exited, status=0/SUCCESS)

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable

If after that I reboot the machine 'sometimes' works and 'sometimes' not. I thinks its related to some service being enabled or not  by systemd before bftpd, so maybe I need to put some statements like After=, Requires= or Wants= in bftpd.service but... which one??

Maybe Im wrong and thats not the way to solve it. Any help will be appreciated.


EDIT:      bftpd.service

[Unit]
Description=bftpd daemon

[Service]
Type=forking
ExecStart=/usr/bin/bftpd -d
GuessMainPID=yes

[Install]
WantedBy=multi-user.target

Last edited by McKlau (2016-06-18 14:25:43)

Offline

#2 2016-06-18 14:26:58

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Bftpd not starting

Is there anything relevant in the journal?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2016-06-18 16:55:47

McKlau
Member
Registered: 2014-02-16
Posts: 9

Re: Bftpd not starting

slithery wrote:

Is there anything relevant in the journal?

journalctl -r -u bftpd

-- Logs begin at lun 2016-06-13 19:57:27 CEST, end at sáb 2016-06-18 18:44:53 CEST. --
jun 18 15:46:26 nabucco systemd[1]: Started bftpd daemon.
jun 18 15:46:26 nabucco systemd[1]: Starting bftpd daemon...
jun 18 13:33:35 nabucco systemd[1]: Started bftpd daemon.
jun 18 13:33:35 nabucco systemd[1]: Starting bftpd daemon...
-- Reboot --
.
.
.

I think 15:46:26 was the time I started it manually. The most strange thing its the third line where it says "Started bftpd daemon", the "systemctl status bftpd" shown in my first post was took 8 mins after boot and it says "Active: inactive (dead) since sáb 2016-06-18 13:33:35 CEST; 8min ago"

Last edited by McKlau (2016-06-18 17:01:58)

Offline

#4 2016-06-20 20:37:59

McKlau
Member
Registered: 2014-02-16
Posts: 9

Re: Bftpd not starting

any ideas??     -_-

Offline

#5 2016-06-24 11:09:58

McKlau
Member
Registered: 2014-02-16
Posts: 9

Re: Bftpd not starting

Since there is no answers in the way I asked, could anyone tell me a way to put in the bftpd.service to start at the end of system boot???

Offline

#6 2016-09-14 02:07:57

liujf
Member
Registered: 2016-09-14
Posts: 1

Re: Bftpd not starting

Meet the same issue, run `bftpd start -d` can start ftp service manually.

Last edited by liujf (2016-09-14 02:46:44)

Offline

#7 2016-09-14 03:55:03

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 505

Re: Bftpd not starting

I just installed it and its running correctly:
bftpd -d -c /etc/bftpd.conf
Launched manually though, you guys must hate as much as we systemd.

Offline

#8 2022-10-21 11:52:19

psi
Member
Registered: 2013-04-08
Posts: 7

Re: Bftpd not starting

Rather old thread but stumbled over it.

Looks like systemd could not find the correct main-pid and kills all childs but for my simple use-case tcp-listening mode is sufficient.

So I created a systemd-overwrite:

systemctl edit bftpd.service
### Editing /etc/systemd/system/bftpd.service.d/override.conf
### Anything between here and the comment below will become the new contents of the file

[Service]
Type=simple
# Empty ExecStart to not have multiple ExecStart's
ExecStart=
ExecStart=/usr/bin/bftpd -D
GuessMainPID=no

### Lines below this comment will be discarded
....
systemctl daemon-reload
systemctl enable bftpd
systemctl start bftpd

Offline

Board footer

Powered by FluxBB