Is there a way to run a shell command at shutdown? My purpose is deregister a service from Consul.
You can look here: https://wiki.gentoo.org/wiki//etc/local.d Page is from Gentoo but it also applies to Alpine Linux.
You can look here: https://wiki.gentoo.org/wiki//etc/local.d
Page is from Gentoo but it also applies to Alpine Linux.