about summary refs log tree commit homepage
path: root/t/config_limiter.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-29 18:58:51 +0000
committerEric Wong <e@80x24.org>2016-07-29 19:17:04 +0000
commit87b61d1daa05bdcf9d810d1655e5abb45456e9a5 (patch)
treec461cc63d9886cc5066efd053a2b32b3fda21cae /t/config_limiter.t
parent204f8891f47b172c9880916993c18e6b041f4b88 (diff)
downloadpublic-inbox-87b61d1daa05bdcf9d810d1655e5abb45456e9a5.tar.gz
This allows systemd users to use SIGWINCH to temporarily
(and gracefully) stop an instance of a service without
doing a code reload to bring it back up:

	# start temporary new service code
	systemctl start public-inbox-nntpd@2.service

	# momentarily paralyze original service
	systemctl kill -s WINCH public-inbox-nntpd@1.service

	if new_code_at_2_sucks
	then
		# restart original workers
		systemctl kill -s HUP public-inbox-nntpd@1.service
	else # new is better than old, replace original instance
		systemctl restart public-inbox-nntpd@1.service
	fi

	# cleanup the temporary service
	systemctl stop public-inbox-nntpd@2.service

This partially reverts commit 73d274e83b7d300f31e0cc1ceeacbf73c6c2a1e4
("daemon: disable SIGWINCH unless explicitly daemonized")
Diffstat (limited to 't/config_limiter.t')
0 files changed, 0 insertions, 0 deletions