Lorenzo Affetti
37441e9eb1
Set log directory attributes in rpm spec ( #5716 )
2019-04-15 16:07:47 -07:00
Gunnar
52bd698046
Use Systemd for Amazon Linux 2 packages ( #5387 )
2019-02-06 16:17:11 -08:00
Lukasz Jagiello
a18eedb970
Use deb-systemd-invoke to restart service ( #3506 )
...
From man page:
```
deb-systemd-invoke is a Debian-specific helper script which asks
/usr/sbin/policy-rc.d before performing a systemctl call.
deb-systemd-invoke is intended to be used from maintscripts to start
systemd unit files. It is specifically NOT intended to be used
interactively by users. Instead, users should run systemd and use
systemctl, or not bother about the systemd enabled state in case they
are not running systemd.
```
This PR replace regular `systemctl` with `deb-systemd-invoke`.
2017-11-27 17:05:32 -08:00
Daniel Nelson
9fc7220c2e
Don't start Telegraf on install in Amazon Linux ( #3156 )
2017-08-22 17:01:59 -07:00
Daniel Nelson
67cd1669cc
Add SLES11 support to rpm package ( #2768 )
2017-05-05 14:29:40 -07:00
Sébastien
a8cfe03ba8
fix systemd path in order to add compatibility with SuSe ( #2499 )
2017-05-05 14:04:33 -07:00
Martin
748ca7d503
Fixed install/remove of telegraf on non-systemd Debian/Ubuntu systems ( #2360 )
2017-04-20 11:19:33 -07:00
Kali Hernandez
822333690f
Debian package: check for group before useradd ( #2107 )
...
Fixes #2106
2017-01-24 14:54:19 -08:00
Pierre Fersing
207c5498e7
Remove systemd Install alias ( #1470 )
...
Alias is a list of additional names. Adding it's cannonical name
cause systemctl enable telegraf to show a warning "Too many levels of
symbolic links"
2016-07-14 15:53:05 -06:00
Adithya B Cherunilam
024e1088eb
Ensure sure that the post install script is compatible with RHEL 5
...
closes #1091
closes #1094
2016-04-28 11:58:06 -06:00
Cameron Sparr
23f2b47531
Ignore errors in systemd
...
closes #1022
2016-04-22 11:23:24 -06:00
Ross McDonald
2f41ae24f8
Swap systemd command, as it was causing issues on Debian.
2016-03-30 10:17:31 -06:00
Pierre Fersing
e4e7d7fbfc
Improved install script for packaged telegraf:
...
* Start/stop service on Debian/Ubuntu
* Disable init-script/Systemd-unit on package removal
closes #747
2016-03-16 11:17:28 -06:00
Ross McDonald
0a9accccc1
Added permissions check to post-install script due to issues with RPMs having the incorrect permissions on the log directory.
2016-03-03 21:34:57 +00:00
Ross McDonald
47ea2d5fb4
Added Amazon Linux logic to post-installation script.
...
closes #579
2016-01-25 17:49:12 -07:00
Ross McDonald
7bfb42946e
Switched to /etc/debian_version for Debian/Ubuntu distribution recognition in post-install.
...
closes #526
closes #525
2016-01-15 10:54:47 -07: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