🐧 Linux 専用クリーニング
Linux 上の OpenClaw サービスは systemd を使用して管理され、ユーザーレベルのサービスまたはシステムレベルのサービスの場合があり、両方の状況を処理する必要があります。
ユーザーレベル systemd サービス(最も一般的)
ほとんどの個人インストールはユーザーレベル systemd サービスを使用します:
# サービスを停止し、ブート時の自動起動を無効化
systemctl --user disable --now openclaw-gateway.service
# サービス ユニット ファイルを削除
rm -f ~/.config/systemd/user/openclaw-gateway.service
# systemd 設定を再ロード
systemctl --user daemon-reload
システムレベル systemd サービス
OpenClaw がシステム サービスとしてインストールされている場合(たとえば、サーバー上で root で展開された):
# sudo 権限が必要
sudo systemctl disable --now openclaw-gateway.service
sudo rm -f /etc/systemd/system/openclaw-gateway.service
sudo systemctl daemon-reload
どちらなのか確認できませんか?両方実行すれば、存在しないものはファイルが見つからないというメッセージが表示され、副作用はありません。
サービス名を確認
改名の歴史により、サービス名は openclaw-gateway ではない場合があります。検索することをお勧めします:
# ユーザーレベル サービスを確認
systemctl --user list-units --all | grep -iE "openclaw|clawdbot|moltbot|gateway"
# システムレベル サービスを確認
systemctl list-units --all | grep -iE "openclaw|clawdbot|moltbot|gateway"
# サービス ファイルを確認
ls ~/.config/systemd/user/ | grep -iE "openclaw|clawdbot|gateway"
ls /etc/systemd/system/ | grep -iE "openclaw|clawdbot|gateway"
残留ディレクトリをクリーニング
rm -rf ~/.openclaw
rm -rf ~/.openclaw-*
sudo を使用してインストールした場合は、root ユーザーのディレクトリも確認してください:sudo ls /root/.openclaw