Commit Graph

10 Commits

Author SHA1 Message Date
Jack Tench 747b54623a Replace sudo with su in init script
To avoid issues starting service when 'Defaults requiretty' is enabled in the sudoers file.

Fixes #1204
2016-05-16 19:43:13 +01:00
Ross McDonald 7f992fd321 Changed nohup fallback command to use 'sudo -u' so that Telegraf doesn't run as the root user. 2016-04-14 13:56:20 -06:00
HUANG Wei f8e9fafda3 Add reload configuration for telegraf service scripts.
closes #794
2016-03-16 11:20:46 -06:00
Ross McDonald 07b4a4dbca Added a `build.py` script for compiling and packaging. Added post and pre install scripts to handle installation and upgrades in a cleaner way. Minor fixes to the init script and service unit file. 2016-01-08 15:28:33 -06:00
Cameron Sparr 9c5db1057d renaming plugins -> inputs 2016-01-07 15:04:30 -07:00
gotyaoi c938523cd5 Implementing LoadDirectory. 2015-10-21 12:00:22 -07:00
Sean Reifschneider 555436a222 Fix for init script for other procs with "telegraf"
The init script fails if another process has the word "telegraf" in
it, for example if you aren running "vi /etc/opt/telegraf/telegraf.conf"
or "tail -f /var/log/telegraf/telegraf.log".  This is because
the "-f" flag to "pgrep" will show processes with the search
string anywhere in the command-line.

This patch turns it around and gets the "ps" output for the process
in the pidfile, and if that line has "telegraf" in it, it considers
it to be running.

Closes #266
Closes #267
2015-10-15 15:06:05 -06:00
Eugene Dementiev 406e980fae install and init script for el5
Fixes #186
Closes #203
2015-09-16 14:19:57 -07:00
jseriff f5a8739b7c update init.sh to use telegraf directories
init.sh should use telegraf directories that are established in the package.sh as of 120218f
2015-07-06 11:07:06 -05:00
Evan Phoenix 39c90dd879 Add package.sh script
These 2 scripts are adapted from the influxd versions. Diffing them
against the influxd versions will show very minor changes.
2015-06-18 11:32:37 -07:00