Skip to content
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

Packager: Influxdb and telegraf share same init.sh path #22

Closed
dever860 opened this issue Jun 22, 2015 · 6 comments
Closed

Packager: Influxdb and telegraf share same init.sh path #22

dever860 opened this issue Jun 22, 2015 · 6 comments

Comments

@dever860
Copy link

Since influxdb and telegraf share the same ROOT DIR's, the init.sh file will get overwritten when both are installed via RPM.

ls -lah /etc/init.d/{telegraf,influxdb}
lrwxrwxrwx 1 root root 21 Jun 22 15:53 /etc/init.d/influxdb -> /opt/influxdb/init.sh
lrwxrwxrwx 1 root root 21 Jun 22 16:06 /etc/init.d/telegraf -> /opt/influxdb/init.sh

Suggest changing the following s/influxdb/telegraf/ so that telegraf is treated independent from influxdb

INSTALL_ROOT_DIR=/opt/influxdb
TELEGRAF_LOG_DIR=/var/log/influxdb
CONFIG_ROOT_DIR=/etc/opt/influxdb
@skynet
Copy link

skynet commented Jun 22, 2015

👍

@skynet
Copy link

skynet commented Jun 25, 2015

can someone provide info on how to patch existing influxdb+telegraf installations. I just got my /opt/influxdb/init.sh overwritten.

@dever860
Copy link
Author

Ultimately I just did the following, and linked the influxdb init script directly to the absolute URL instead of the symlink in /opt/influxdb.

ln -fs /opt/influxdb/versions/0.9.0/scripts/init.sh /etc/init.d/influxdb

@skynet
Copy link

skynet commented Jun 25, 2015

That helps. I suppose you have to do this, too:

ln -fs /opt/influxdb/versions/0.1.1/scripts/init.sh /etc/init.d/telegraf

with this final result:

ls -lah /etc/init.d/{telegraf,influxdb}
lrwxrwxrwx 1 root root 44 Jun 25 17:18 /etc/init.d/influxdb -> /opt/influxdb/versions/0.9.0/scripts/init.sh
lrwxrwxrwx 1 root root 44 Jun 25 17:21 /etc/init.d/telegraf -> /opt/influxdb/versions/0.1.1/scripts/init.sh

@toddboom
Copy link
Contributor

toddboom commented Jul 2, 2015

This should be fixed by #23.

@toddboom toddboom closed this as completed Jul 2, 2015
@dever860
Copy link
Author

dever860 commented Jul 2, 2015

@toddboom It should be, but #23 was closed and not merged.

siva-vunet pushed a commit to siva-vunet/telegraf that referenced this issue May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants