Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am polansky on github.
  • I am jpolansky (https://keybase.io/jpolansky) on keybase.
  • I have a public key ASBAWcwAJVdPj00FIIncnWoIjViCi1oWU9G6eruzXbKJaQo

To claim this, I am signing this object:

@polansky
polansky / gist:9475745
Last active August 29, 2015 13:57
Updating command to get PID. pgrep only works on the first 15 characters of a command name on CentOS 6. "logstash-forwarder" is 18. Doh!
#!/bin/sh
#
# /etc/init.d/logstash-forwarder
#
# Starts and stops logstash-forwarder as a daemon.
#
# chkconfig: 2345 30 70
# description: Starts and stops logstash-forwarder as a daemon.
# The name of this service
@polansky
polansky / gist:7307828
Last active December 27, 2015 09:59 — forked from lmorfitt/gist:6459539
This is an update to an existing gist to add functionality to start the daemon in the lumberjack install dir. This is so that the ".lumberjack" file (which is created to track the position lumberjack is in the file) is not created at /.
#!/bin/sh
#
# /etc/init.d/lumberjack
#
# Starts and stops Lumberjack as a "daemon".
#
# chkconfig: 2345 30 70
# description: Starts and stops Lumberjack as a daemon.
# The name of this service