-
Notifications
You must be signed in to change notification settings - Fork 1
/
uninstall.sh
executable file
·22 lines (18 loc) · 746 Bytes
/
uninstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Stop services
docker stop $(docker ps -q -f name=ndntdump-*) > /dev/null 2>&1
sudo systemctl stop "ndntdump*"
sudo systemctl disable "ndntdump-capture-start.timer"
sudo systemctl disable "ndntdump-capture-stop.timer"
# Remove services
sudo rm /etc/systemd/system/ndntdump-capture-start.service
sudo rm /etc/systemd/system/ndntdump-capture-stop.service
sudo rm /etc/systemd/system/ndntdump-scp.service
sudo rm /etc/systemd/system/ndntdump-capture-start.timer
sudo rm /etc/systemd/system/ndntdump-capture-stop.timer
sudo rm /usr/local/bin/ndntdump-capture-start.sh
sudo rm /usr/local/bin/ndntdump-capture-stop.sh
sudo rm /usr/local/bin/ndntdump-scp.sh
# Reload systemd daemon
sudo systemctl daemon-reload
echo "Uninstall complete"