rokkonet

PC・Androidソフトウェア・アプリの開発・使い方に関するメモ

systemd サービス削除

2021 Apr. 03.

出典 linux - How to remove systemd services - Super User

# systemctl stop [servicename]
# systemctl disable [servicename]
# rm /etc/systemd/system/[servicename]
# rm /etc/systemd/system/[servicename] # and symlinks that might be related
# rm /usr/lib/systemd/system/[servicename] 
# rm /usr/lib/systemd/system/[servicename] # and symlinks that might be related
# systemctl daemon-reload
# systemctl reset-failed  # サービス起動失敗時のステータスをクリアする