Bug 227945 - sysutils/beats: filebeat startup script not redirecting stdout
Summary: sysutils/beats: filebeat startup script not redirecting stdout
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Palle Girgensohn
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-03 06:02 UTC by TAO ZHOU
Modified: 2018-05-26 20:30 UTC (History)
2 users (show)

See Also:


Attachments
patch filebeat rc.d script (463 bytes, patch)
2018-05-03 06:02 UTC, TAO ZHOU
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TAO ZHOU 2018-05-03 06:02:44 UTC
Created attachment 193016 [details]
patch filebeat rc.d script

rc.d scripts should redirect stdout to /dev/null, otherwise it will cause unexpected problems.
The issue I had recently is that saltstack cannot restart service filebeat.
After I added '-f' flag to /usr/sbin/daemon, problem was solved.
I hereby attached a patch. Can someone merge it to the port.
Comment 1 Palle Girgensohn freebsd_committer freebsd_triage 2018-05-26 20:30:30 UTC
Committed. Thanks!
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-05-26 20:30:47 UTC
A commit references this bug:

Author: girgen
Date: Sat May 26 20:30:04 UTC 2018
New revision: 470949
URL: https://svnweb.freebsd.org/changeset/ports/470949

Log:
  Redirect stdout & stderr to /dev/null in rc.d scripts

  PR:		227945
  Submitted by:	TAO ZHOU

Changes:
  head/sysutils/beats/Makefile
  head/sysutils/beats/files/filebeat.in
  head/sysutils/beats/files/heartbeat.in
  head/sysutils/beats/files/metricbeat.in
  head/sysutils/beats/files/packetbeat.in