Bug 231809 - ftp/pure-ftpd can't restart via cron
Summary: ftp/pure-ftpd can't restart via cron
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Sunpoet Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-29 22:13 UTC by rainer
Modified: 2019-08-08 08:38 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rainer 2018-09-29 22:13:19 UTC
Hi,

due to log-rotation, my pure-ftpd is killed every day.

I tried to setup a cron-job that restarts it, but I get this as output:

/etc/rc.subr: kenv: not found
pureftpd not running?
Starting pureftpd.
eval: limits: not found
/usr/local/etc/rc.d/pure-ftpd: logger: not found
/usr/local/etc/rc.d/pure-ftpd: WARNING: failed to start pureftpd


Is that expected behavior?
Comment 1 rainer 2018-09-29 22:17:22 UTC
If I create a shell-script

#!/bin/sh
PATH=$PATH:/bin:/usr/bin:/usr/local/bin
/usr/local/etc/rc.d/pure-ftpd restart

then it works.
Comment 2 Walter Schwarzenfeld freebsd_triage 2019-08-08 08:38:14 UTC
ping!