summarylogtreecommitdiffstats
path: root/graylog-collector-sidecar.install
blob: 8b0dc6303a24ae06b118ca634b2f29b8a3349514 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
    echo -e "Installing systemd service file..."
    graylog-collector-sidecar -service install
    echo -e "\nMake sure you edit your /etc/graylog/collector-sidecar/collector_sidecar.yml file as needed."
    echo -e "After making your changes, enable and start the collector-sidecar service with systemctl\n"
}

pre_remove() {
    echo -e "Stopping collector-sidecar service..."
    graylog-collector-sidecar -service stop
    echo -e "Removing systemd service file..."
    graylog-collector-sidecar -service uninstall
    echo -e "DONE"
}