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

Remove systemd Install alias #1470

Merged
merged 1 commit into from
Jul 14, 2016
Merged

Conversation

PierreF
Copy link
Contributor

@PierreF PierreF commented Jul 8, 2016

Required for all PRs:

  • CHANGELOG.md updated
  • Sign CLA (if not already signed)

With current telegraf, when updating package we got the following error (at least on Debian/Ubuntu):

Setting up telegraf (1.0.0~beta2) ...
Failed to execute operation: Too many levels of symbolic links

It is caused by systemctl enable telegraf:

# systemctl enable telegraf
Failed to execute operation: Too many levels of symbolic links

It seems to be due to Alias in Install section of telegraf.service. From my understanding of manpage systemd.unit, alias should only contains additional name.

Removing the alias (and the symlink /etc/systemd/system/telegraf.service created) fix this issue, after this PR systemctl enable telegraf show no warning. Obviously telegraf is still started on boot & could be controlled with systemctl {start|stop|status} telegraf

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"
@sparrc
Copy link
Contributor

sparrc commented Jul 14, 2016

thanks @PierreF

@sparrc sparrc merged commit 207c549 into influxdata:master Jul 14, 2016
@PierreF PierreF deleted the systemd-symlink-error branch August 4, 2018 13:23
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 this pull request may close these issues.

2 participants