Re: [Proftpd-user] compiling Proftp 1.3.6

Ian via Proftp-user <[email protected]>
Newsgroups gmane.network.proftpd.user
Message-ID <[email protected]>
 There is one more difference :  yum install proftpd brings down version "ProFTPD 1.3.5e (maint) (built Wed Jan 31 2018 16:32:29 UTC) standalone mode STARTUP"while I am running 1.3.6 when I compile from source.  "ProFTPD 1.3.6 (stable) (built Fri Aug 3 2018 19:04:53 UTC) standalone mode STARTUP"
This shouldn't make a difference  but thought I'd throw it out there. 


[root@us-az02-dev-sftp-001-vm proftpd]# systemctl status proftpd.service● proftpd.service - ProFTPD FTP Server   Loaded: loaded (/usr/lib/systemd/system/proftpd.service; disabled; vendor preset: disabled)   Active: activating (start) since Sat 2018-08-04 18:17:07 UTC; 1min 7s ago  Process: 39434 ExecStart=/usr/local/sbin/proftpd $PROFTPD_OPTIONS (code=exited, status=0/SUCCESS)   CGroup: /system.slice/proftpd.service           └─39435 proftpd: (accepting connections)
Aug 04 18:17:07 us-az02-dev-sftp-001-vm systemd[1]: Starting ProFTPD FTP Server...Aug 04 18:17:07 us-az02-dev-sftp-001-vm systemd[1]: PID file /run/proftpd/proftpd.pid not readable (yet?) after start.Aug 04 18:17:07 us-az02-dev-sftp-001-vm proftpd[39435]: us-az02-dev-sftp-001-vm - ProFTPD 1.3.6 (stable) (built Fri Aug 3 2018 19:04:53 UTC) standalone mode STARTUP

systemctl hangs for a while  then eventually error on timed out  --  there looks to be 2 processes 
"Process: 39434" and "39435 proftpd: (accepting connections)" . --- so it does fork but not returning from the fork . ? 



[root@us-az02-dev-sftp-001-vm proftpd]# systemctl status proftpd.service● proftpd.service - ProFTPD FTP Server   Loaded: loaded (/usr/lib/systemd/system/proftpd.service; disabled; vendor preset: disabled)   Active: failed (Result: timeout) since Sat 2018-08-04 18:18:37 UTC; 3min 36s ago  Process: 39434 ExecStart=/usr/local/sbin/proftpd $PROFTPD_OPTIONS (code=exited, status=0/SUCCESS)
Aug 04 18:17:07 us-az02-dev-sftp-001-vm systemd[1]: Starting ProFTPD FTP Server...Aug 04 18:17:07 us-az02-dev-sftp-001-vm systemd[1]: PID file /run/proftpd/proftpd.pid not readable (yet?) after start.Aug 04 18:17:07 us-az02-dev-sftp-001-vm proftpd[39435]: us-az02-dev-sftp-001-vm - ProFTPD 1.3.6 (stable) (built Fri Aug 3 2018 19:04:53 UTC) standalone mode STARTUPAug 04 18:18:37 us-az02-dev-sftp-001-vm systemd[1]: proftpd.service start operation timed out. Terminating.Aug 04 18:18:37 us-az02-dev-sftp-001-vm systemd[1]: Failed to start ProFTPD FTP Server.Aug 04 18:18:37 us-az02-dev-sftp-001-vm systemd[1]: Unit proftpd.service entered failed state.Aug 04 18:18:37 us-az02-dev-sftp-001-vm systemd[1]: proftpd.service failed.




    On Saturday, August 4, 2018, 7:56:14 AM PDT, Ian via Proftp-user <[email protected]> wrote:  
 
 

Hi Clark, it is set to standalone, here is a snippet of the conf file 

---
ServerName                    "SFTP Server"
ServerType                      standalone
UseReverseDNS             off
DeferWelcome                 off
DefaultServer                   off
---




On Saturday, August 4, 2018, 6:18:13 AM PDT, Clark Christensen <[email protected]> wrote: 





Is proftpd configured as ServerType standalone in proftpd.conf?

Sounds like it might be in inetd mode.

-Clark 

> On Aug 3, 2018, at 8:08 PM, Ian via Proftp-user <[email protected]> wrote:
> 
> I have a compiling from source question .
> 
> When installing proftpd via 
> - yum install -y proftpd followed 
> - systemctl  start proftpd
> 
> the call to systemd exit nicely.  
> 
> When I compile from source using the following 
> 
>  ./configure \
>      --disable-ident \
>      --enable-dso --enable-sodium \
>      --with-shared=mod_sql:mod_sql_postgres:mod_sql_passwd:mod_sftp:mod_sftp_sql \
>      --with-includes=/usr/include/openssl:/usr/include:/usr/include/sodium make
> make install 
> 
> I can run proftpd from command line + i can also start it via systemctl .  However, with my compiled binaris, systemctl will start proftpd but won't exit.  It just blocks waiting for Proftpd to exit .  To get systemctl to exit, i have to change the type from "forking" to "simple" in proftpd.service definition 
> 
> What am I missing ? 
> 
> 
> 
> --------- Content of  proftpd.service 
> 
> [Unit]
> Description = ProFTPD FTP Server
> After = network.target nss-lookup.target local-fs.target remote-fs.target
> 
> [Service]
> Type = forking    >>>>>>>>>>>>>>>>>>>>>>>>>> has to be Type = "simple" 
> PIDFile = /run/proftpd/proftpd.pid
> Environment = PROFTPD_OPTIONS=
> EnvironmentFile = -/etc/sysconfig/proftpd
> ExecStart = /usr/sbin/proftpd $PROFTPD_OPTIONS
> ExecReload = /bin/kill -HUP $MAINPID
> 
> [Install]
> WantedBy = multi-user.target
>  
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! https://nam03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsdm.link%2Fslashdot&data=02%7C01%7C%7Cfcab35719edf45db34fd08d5f9b79c03%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636689489340707441&sdata=bebH%2BW9O%2BiZinJEqtNWlwWCVSTuzl7mMS8Y7pmMsFTw%3D&reserved=0
> _______________________________________________
> ProFTPD Users List  <[email protected]>
> Unsubscribe problems?
> https://nam03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.proftpd.org%2Flist-unsub.html&data=02%7C01%7C%7Cfcab35719edf45db34fd08d5f9b79c03%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636689489340707441&sdata=L1QyxiScI3ZL7nFPdmeQTceJibO91sG7cIObhhmKGAQ%3D&reserved=0


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ProFTPD Users List  <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ProFTPD Users List  <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
ProFTPD Users List   <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.