Execute command at shutdown

2 posts / 0 new
Last post
#1 Wed, 2016-11-02 23:49
federico
  • federico's picture
  • Offline
  • Last seen: 1 year 4 months ago
  • Joined: 2016-02-15

Is there a way to run a shell command at shutdown?
My purpose is deregister a service from Consul.

Fri, 2016-11-04 02:01
AmatCoder
  • AmatCoder's picture
  • Offline
  • Last seen: 1 year 4 months ago
  • Joined: 2013-10-18

You can look here: https://wiki.gentoo.org/wiki//etc/local.d
Page is from Gentoo but it also applies to Alpine Linux.

Log in or register to post comments