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. |