Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 650000 - net-ftp/proftpd-1.3.5e: does not start under systemd
Summary: net-ftp/proftpd-1.3.5e: does not start under systemd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-09 12:38 UTC by tazinblack
Modified: 2018-03-10 12:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
override file for systemd (override.conf,53 bytes, text/plain)
2018-03-09 13:09 UTC, tazinblack
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tazinblack 2018-03-09 12:38:28 UTC
proftpd does not start with systemd.

Error:

"mod_delay/0.7: error opening DelayTable '/var/run/proftpd/proftpd.delay': File or directory not found"

Looks like /var/run/proftpd directory is not created during start.
/var/run points to /run which is a tmpfs.

When directory is created by hand it starts
Comment 1 tazinblack 2018-03-09 13:09:09 UTC
Created attachment 523088 [details]
override file for systemd

Place this one under /etc/systemd/system/proftpd.service.d
The subfolder proftpd.service.d maybe has to be created
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2018-03-09 23:21:30 UTC
The directory is supposed to be created by tmpfiles.d entry:

$ cat /usr/lib/tmpfiles.d/proftpd.conf
d /var/run/proftpd 0755 root root

The problem here is that systemd (or openrc) is not being triggered right after package is installed. I think calling 'tmpfiles_process()' in 'pkg_postinst()' would do it:
    https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/tmpfiles.eclass#n106

Do you want to give it a try and tweak the ebuild or should I just do it?
Comment 3 tazinblack 2018-03-10 09:54:49 UTC
Would be great if you could do it. I think I do not have access to the gentoo git.
Comment 4 Larry the Git Cow gentoo-dev 2018-03-10 12:10:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69971e78ba3a2a72dd54ae8a0eb91f723b5998b0

commit 69971e78ba3a2a72dd54ae8a0eb91f723b5998b0
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-03-10 12:09:41 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-03-10 12:10:26 +0000

    net-ftp/proftpd: create /var/run/proftpd at package install time, bug #650000
    
    The directory is supposed to be created by tmpfiles.d entry:
        $ cat /usr/lib/tmpfiles.d/proftpd.conf
        d /var/run/proftpd 0755 root root
    
    The problem here is that systemd (or openrc) is not being triggered right
    after package is installed.
    
    Reported-by:  tazinblack
    Closes: https://bugs.gentoo.org/650000
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 net-ftp/proftpd/proftpd-1.3.6-r1.ebuild | 262 ++++++++++++++++++++++++++++++++
 1 file changed, 262 insertions(+)