Public bug reported: Package: proftpd-core Version: 1.3.7c+dfsg-1build1 Architecture: amd64
The $OPTIONS environment variable is defined in the /lib/systemd/system/proftpd.service file and used in the "ExecStart" line when starting the service, but it is not used when calling --configtest in the "ExecStartPre" line: [Service] Type=forking Environment=OPTIONS= CONFIG_FILE=/etc/proftpd/proftpd.conf EnvironmentFile=-/etc/default/proftpd ExecStartPre=/usr/sbin/proftpd --configtest -c $CONFIG_FILE ExecStart=/usr/sbin/proftpd -c $CONFIG_FILE $OPTIONS ExecReload=/bin/kill -HUP $MAINPID PIDFile=/run/proftpd.pid If the server's hostname cannot be resolved for some reason, proftpd will not start. Adding the line below to the /etc/default/proftpd file can circumvent this issue: OPTIONS="-S 0.0.0.0" However, due to the absence of the $OPTIONS variable in "ExecStartPre", the OPTIONS line in the /etc/default/proftpd will be ignored, "-- configtest" will fail and proftpd will not start. We believe the $OPTIONS variable should be added to the "ExecStartPre" line. Best regards, kodu.cloud team. ** Affects: proftpd-dfsg (Ubuntu) Importance: Undecided Status: New ** Description changed: Package: proftpd-core Version: 1.3.7c+dfsg-1build1 Architecture: amd64 The $OPTIONS environment variable is defined in the /lib/systemd/system/proftpd.service file and used in the "ExecStart" line when starting the service, but it is not used when calling --configtest in the "ExecStartPre" line: [Service] Type=forking Environment=OPTIONS= CONFIG_FILE=/etc/proftpd/proftpd.conf EnvironmentFile=-/etc/default/proftpd ExecStartPre=/usr/sbin/proftpd --configtest -c $CONFIG_FILE ExecStart=/usr/sbin/proftpd -c $CONFIG_FILE $OPTIONS ExecReload=/bin/kill -HUP $MAINPID PIDFile=/run/proftpd.pid If the server's hostname cannot be resolved for some reason, proftpd will not start. Adding the line below to the /etc/default/proftpd file can circumvent this issue: OPTIONS="-S 0.0.0.0" However, due to the absence of the $OPTIONS variable in "ExecStartPre", - the OPTIONS line in the /etc/default/proftpd will be ignored, - --configtest will fail and proftpd will not start. + the OPTIONS line in the /etc/default/proftpd will be ignored, "-- + configtest" will fail and proftpd will not start. We believe the $OPTIONS variable should be added to the "ExecStartPre" line. - Best regards, + Best regards, kodu.cloud team. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2059835 Title: $OPTIONS variable missing in "ExecStartPre" of proftpd-basic systemd unit To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/proftpd-dfsg/+bug/2059835/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs