1
0
Fork 0
telegraf/scripts/deb/pre-remove.sh

11 lines
176 B
Bash
Raw Normal View History

#!/bin/bash
if [ -d /run/systemd/system ]; then
if [ "$1" = remove ]; then
deb-systemd-invoke stop telegraf.service
fi
else
# Assuming sysv
invoke-rc.d telegraf stop
fi