Remove systemd Install alias (#1470)
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"
This commit is contained in:
parent
d5e7439343
commit
207c5498e7
|
@ -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
|
||||
|
|
|
@ -15,4 +15,3 @@ KillMode=control-group
|
|||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=telegraf.service
|
||||
|
|
Loading…
Reference in New Issue