🔍 Pembersihan Mendalam dan Verifikasi
Setelah uninstal, lakuin pengecekan mendalam. Pastiin nggak ada process sisa yang jalan, nggak ada port yang keburu, nggak ada service yang autostart sembunyi-sembunyi. Ini skill dasar seorang ops professional.
Cek process sisa
# macOS / Linux
ps aux | grep -i openclaw
# Search lebih presisi (exclude grep itself)
ps aux | grep -i "[o]penclaw"
Kalau ada hasil, berarti masih ada process OpenClaw yang jalan. Catat PID-nya, terus terminate pake kill <PID>.
Cek port yang keburu
# macOS
lsof -iTCP -sTCP:LISTEN -P -n | grep -i openclaw
# Linux
ss -lptn | grep -i openclaw
# Atau pake lsof (perlu root)
sudo lsof -iTCP -sTCP:LISTEN -P -n | grep -i openclaw
OpenClaw mungkin pake port 18789, 18791, 18792, 19789, 5353(UDP). Cek port-port itu masih keburu nggak.
Cek config autostart service
macOS — launchctl
launchctl list | grep -iE "openclaw|clawdbot|moltbot|gateway"
Linux — systemd
# User-level
systemctl --user list-units --all | grep -iE "openclaw|clawdbot|gateway"
# System-level
systemctl list-units --all | grep -iE "openclaw|clawdbot|gateway"
Universal — crontab
crontab -l | grep -iE "openclaw|clawdbot|gateway"
Cek environment variable
Pastiin nggak ada sisa environment variable OpenClaw di shell config file:
# Cek common shell config file
grep -i openclaw ~/.bashrc ~/.zshrc ~/.bash_profile ~/.profile 2>/dev/null
Kalau ada, manual edit file yang bersangkutan terus hapus baris-baris yang relate.
✅ Verifikasi uninstal sukses
Jalanin command-command berikut, kalau semuanya output "not found" atau kosong, congrats, OpenClaw udah totally hilang dari sistem:
# CLI masih ada nggak
which openclaw
# output harusnya: openclaw not found
# Config directory masih ada nggak
ls ~/.openclaw 2>/dev/null
# output harusnya: No such file or directory
# Process masih jalan nggak
ps aux | grep "[o]penclaw"
# output harusnya: kosong
# Service masih ada nggak
systemctl --user status openclaw-gateway 2>/dev/null
# harusnya: not found
Semuanya pass? 🎉 Sistem kamu udah totally bersih.