You are not logged in.
Pages: 1
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
Offline
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
any ideas?? -_-
Offline
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
Meet the same issue, run `bftpd start -d` can start ftp service manually.
Last edited by liujf (2016-09-14 02:46:44)
Offline
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
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
Pages: 1