Remove script for apps
eldoy opened this issue · comments
Should remove app:
stop app@pay
# Delete app
rm -rf /root/apps/pay/
# Delete nginx config
rm /etc/nginx/conf.d/pay-eldoy-com.conf
# Delete cert data
rm -rf /etc/letsencrypt/live/pay.eldoy.com/
rm /etc/letsencrypt/renewal/pay.eldoy.com.conf
rm -rf archive/pay.eldoy.com/
Or maybe this works for cert data? certbot delete --non-interactive --cert-name pay.eldoy.com
Should also forcefully delete the service:
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
It is possible that the systemd service 'wraps' the old style scripts in /etc/init.d, so you may want to clean that up too, but that is not where systemd services live.
Added in remove.js