influxdb
influxdb copied to clipboard
package not follow linux FHS
From Debian FHS manual :
- if not use the
/opt/directory- the binary file
influxandinfluxdshould be placed under/usr/bin/ - the documentation should be placed under
/usr/share/doc/influxdb/ - init script should be placed at
/etc/init.d/influxdand useupdate-rc.dto install the script - configuration files should go under
/etc/influxdb/ - there should be a
/etc/default/influxdbconfiguration file provided by default - data directory should go under
/var/lib/influxdb - influxdb user should set
/var/lib/influxdbor/nonexistantas home directory and use/bin/falseas login shell - there should be a
/lib/systemd/system/influxdb.serviceconfiguration file for systemd
- the binary file
- if use the
/opt/directory- the binary file
influxandinfluxdshould be placed under/opt/influxdb/bin/ - the documentation should be placed under
/opt/influxdb/usr/share/doc/influxdb/ - configuration files should go under
/etc/opt/influxdb/ - data directory should go under
/var/opt/influxdb/ - I have no idea where the init script should be located. I will read more manuals about it.
- influxdb user should set
/var/opt/influxdbor/nonexistantas home directory and use/bin/falseas login shell
- the binary file
This is an example systemd configuration file influxdb.service from ArchLinux.
https://aur.archlinux.org/cgit/aur.git/tree/influxdb.service?h=influxdb
I also agree this would be a nice addition. You could also look at how Grafana set their packaging as they are also a go project.
https://github.com/grafana/grafana/tree/master/packaging https://github.com/grafana/grafana/issues/1758
Closing in favor of #4479. Any further comments should be made on the PR.