Comments (4)
Hi @captainark thanks for reporting! Yes, I need to make better use of the beats-packer tooling the Beats team uses for releases and also fix small things like this.
I believe as a workaround, Monit can track services using the process name IIRC. That might be a workaround while I get this sorted.
from pingbeat.
Hi @joshuar !
Thanks for taking the time to reply !
I didn't know that monit doesn't need PID files anymore... I guess I hadn't read the manual in a while.
I've added the following in my /etc/systemd/system/pingbeat.service
unit file to generate a PID file :
ExecStartPre=/bin/bash -c "/bin/rm -f /run/pingbeat.pid"
ExecStartPost=/bin/bash -c "/usr/bin/pgrep -fx '/opt/go/bin/pingbeat -c /etc/pingbeat/pingbeat.yml' > /run/pingbeat.pid"
ExecStopPost=/bin/bash -c "[[ -f /run/pingbeat.pid ]] && /bin/rm /run/pingbeat.pid"
I'm still looking forward to seeing pingbeat generate a PID file on its own though ;)
from pingbeat.
The latest update includes a systemd service file. I copied it to /etc/systemd/system/
, updated the path in ExecStart
, and it just worked with systemctl
.
$ systemctl status pingbeat
● pingbeat.service - Pingbeat
Loaded: loaded (/etc/systemd/system/pingbeat.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2016-07-08 21:23:40 AEST; 38min ago
Main PID: 3572 (pingbeat)
CGroup: /system.slice/pingbeat.service
└─3572 /opt/go/bin/pingbeat -c /etc/pingbeat/pingbeat.yml
Jul 08 21:23:40 pingbeat.local systemd[1]: Started Pingbeat.
Jul 08 21:23:40 pingbeat.local systemd[1]: Starting Pingbeat...
from pingbeat.
Closing as the systemd file should be working now?
from pingbeat.
Related Issues (20)
- Index template no longer needed? HOT 1
- Can't update HOT 3
- Cannot find package 'libbeat' HOT 1
- Why is the username/password to elasticsearch deprecated? HOT 2
- Upgrade libbeat to beats HOT 2
- Don't require glide for make; vendor dependencies HOT 1
- Beats Heartbeat collaboration HOT 1
- Stuck on fetching updates for github.com/oschwald/geoip2-golang HOT 1
- target_name.raw is not getting data anymore HOT 1
- Missing 'loss' field in pingbeat output HOT 8
- I want to get timeout in pingbeat output
- Problem with make install
- Problem with make
- Cannot publish events to es2x because of '.' character in field name
- README.md is outdated rendering installation extremely arduous HOT 3
- run error: "Exiting: privileged specified but not running with privileges" in windows
- Getting error: No outputs are defined. Please define one under the output section. HOT 1
- ppingbeat panics with stack trace
- Missing target.description
- Rejecting mapping update HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pingbeat.