Re: [Proftpd-user] Init script for RHEL8
"Robillard, Bob" <[email protected]> Fri, 26 Jan 2024 14:47:42 +0000
| Newsgroups | gmane.network.proftpd.user |
|---|---|
| Message-ID | <BL3P221MB05307F8C58FB930EC2C79A0DD0792@BL3P221MB0530.NAMP221.PROD.OUTLOOK.COM> |
> I'm wondering, why you want to work with init scripts on Redhat8 instead of doing a proper systemd integration As an aside, that's how we did it...there's a proftpd.service file in the "contrib" source tree to start from: [Unit] Description = ProFTPD FTP Server Wants=network-online.target After=network-online.target nss-lookup.target local-fs.target remote-fs.target [Service] Type = simple Environment = PROFTPD_OPTIONS= EnvironmentFile = -/etc/sysconfig/proftpd ExecStartPre = /usr/sbin/proftpd --configtest ExecStart = /usr/sbin/proftpd --nodaemon $PROFTPD_OPTIONS ExecReload = /bin/kill -HUP $MAINPID PIDFile = /run/proftpd/proftpd.pid [Install] WantedBy = multi-user.target -----Original Message----- From: Preuße, Hilmar via Proftp-user <[email protected]> Sent: Thursday, January 25, 2024 5:07 PM To: [email protected] Cc: Preuße, Hilmar <[email protected]> Subject: Re: [Proftpd-user] Init script for RHEL8 This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email. On 22.01.2024 20:36, Lists wrote: Hi, > We are migrating our proftpd from RHEL7 to RHEL8. We copied our > /etc/init.d script but it does not work. Curious if someone has > conquered this issue. Proftpd does start when calling > /usr/sbin/proftpd directly. > I'm wondering, why you want to work with init scripts on Redhat8 instead of doing a proper systemd integration. IIRC there are some templates in the proftp source package, which you can use. Further I'd expect that proftp is packaged for Redhat, but I did not check. Hilmar _______________________________________________ ProFTPD Users List <[email protected]> Unsubscribe problems? http://www.proftpd.org/list-unsub.html