killing the crawler

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

killing the crawler

Post by Thunderstone »



Hello,

what's the best signal to send gw when I want it to quit?

kill -l
1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL
5) SIGTRAP 6) SIGIOT 7) SIGBUS 8) SIGFPE
9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2
13) SIGPIPE 14) SIGALRM 15) SIGTERM 17) SIGCHLD
18) SIGCONT 19) SIGSTOP 20) SIGTSTP 21) SIGTTIN
22) SIGTTOU 23) SIGURG 24) SIGXCPU 25) SIGXFSZ
26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 29) SIGIO
30) SIGPWR

2?
15?
3 maybe?

I just want to make sure that I stop gw gently and don't cause any
index/table corruption.

Also, has anyone written anything to shut down gw gently on system shutdown
(under UNIX)?
So if gw is running and somebody decides to reboot or shutdown the machine
I'd like to have gw stopped nicely (probably with one of the 'gentle
signals' from the list above)

Thanks!

Otis



User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

killing the crawler

Post by Thunderstone »



The kill command defaults to signal 15 which is what you should use.

Shutdown on most (if not all) systems will automatically send signal 15
to all processes. Just make sure you use the "shutdown" command and not
the "reboot" command. reboot generally skips all of the politeness.

..


Post Reply