Skip to content

Commit

Permalink
Remove systemd Install alias (#1470)
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
PierreF authored and sparrc committed Jul 14, 2016
1 parent d5e7439 commit 207c549
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions scripts/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ chmod 755 $LOG_DIR
if [[ -L /etc/init.d/telegraf ]]; then
rm -f /etc/init.d/telegraf
fi
# Remove legacy symlink, if it exists
if [[ -L /etc/systemd/system/telegraf.service ]]; then
rm -f /etc/systemd/system/telegraf.service
fi

# Add defaults file, if it doesn't exist
if [[ ! -f /etc/default/telegraf ]]; then
Expand Down
1 change: 0 additions & 1 deletion scripts/telegraf.service
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ KillMode=control-group

[Install]
WantedBy=multi-user.target
Alias=telegraf.service

0 comments on commit 207c549

Please sign in to comment.