-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with debian packages. #264
Comments
This adds copytruncate and dateext to match the Influxdb logrotate file, and removes nocreate (again, to match influxdb).
Can't say I disagree with these points, I believe @linsomniac I'll merge the PR you sent up, and then talk to others here at Influx and see if we can eliminate usage of |
See the discussion on influxdb for my similar report and PR: |
Thanks, can you send up another PR to fix the rest of the points you made? |
Probably. The package.sh script is a slightly unusual way of doing it (instead of using a debian/ directory), but I can probably figure it out. From the influxdb side of things, it sounds like it is something they are open to, so it sounds like I could have some traction if I made the changes I proposed. Does the proposal sound good to you? |
yes, except please link the binary in |
Issue influxdata#264: This attempts to fix the /etc/opt and put the binary linked into /bin Note: I can't seem to find the right combination of packages for getting package.sh to run, so I haven't been able to test this.
Please re-open. |
Since this bug tracks issues with installing from a debian pacakge, I'll add this here: On installation, I see this:
Probably due to bash syntax in a file that is executed under Happy to open a new issue to track this if needed. Details of downloaded deb file:
|
That issue has been fixed, it will be available in the next release |
Fixed with #497 |
Thank you very much for the debian packages. However, there are a few things I think need to be changed:
The package installs things into opt sub-directories of other directories: /etc/opt/telegraf. These are just the wrong places for them. Really the config file should go into /etc/telegraf.conf, or possibly /etc/telegraf/telegraf.conf (though since there is only one file, it doesn't make sense to make a directory.
The logrotate file needs to include "copytruncate", since it doesn't signal telegraf to re-open the log-file, otherwise it leaves no log file and the current telegraf instance keeps writing the existing (removed) file until it is restarted.
The logrotate file should probably also have "dateext" to match influxdb?
Typically, packages don't put things into /opt, the packages manage the installed files so you would just put the daemon into /usr/sbin, the init scripts either directly into /etc/init or /etc/init.d, or into /usr/share and copy/link them into /etc/init in the post install.
The package also lists a file "/.". That probably doesn't hurt anything but also could be cleaned up.
The text was updated successfully, but these errors were encountered: