Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] bind-9.7.1_p2 does not want to stop...
Date: Tue, 16 Nov 2010 23:22:05
Message-Id: AANLkTi=TRwbc-ya-LGMG_Et-NkF-s_xsxctohkFSEXjy@mail.gmail.com
In Reply to: [gentoo-user] bind-9.7.1_p2 does not want to stop... by Jarry
1 >
2 > The problem is, it runs forever, and does not want to stop:
3 >
4
5 Standard practice for any daemon that doesnt want to stop via the init
6 script, most graceful to most forceful;
7 1. Try the daemons native shutdown command (some have an option to shutdown
8 only after any connected clients are serviced, eg apache)
9 2. Issue the process the TERM signal via kill or pkill as root (TERM is the
10 default signal) to shut down the process gracefully. So say "pkill named"
11 but make sure there are no other processes with "named" anywhere in their
12 name or they'll be killed too.
13 3. Issue the process the KILL signal via kill or pkill as root, by adding
14 the -9 argument, so "pkill -9 named"
15
16 You may need to /etc/init.d/named zap to clear the state if
17 /etc/init.d/named start reports that the process is already running.