{"id":2372,"date":"2013-07-16T12:49:43","date_gmt":"2013-07-16T04:49:43","guid":{"rendered":"http:\/\/rmohan.com\/?p=2372"},"modified":"2013-07-16T12:49:43","modified_gmt":"2013-07-16T04:49:43","slug":"singnals-in-linux","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=2372","title":{"rendered":"Singnals in Linux"},"content":{"rendered":"<p>Singnals in Linux<br \/>\nTerminate or send a signal with kill or killall<\/p>\n<p># kill -s TERM 4712  &#8212;&#8212;&#8211; same as kill -15 4712<br \/>\n# killall -1 httpd    &#8212;&#8212;&#8211; Kill HUP processes by exact name<br \/>\n# pkill -9 http          &#8212;&#8212;&#8211; Kill TERM processes by (part of) name<br \/>\n# pkill -TERM -u www &#8212;&#8212;- Kill TERM processes owned by www<br \/>\n# fuser -k -TERM -m \/home &#8212;&#8212; Kill every process accessing \/home<br \/>\n                                                           (to umount)<\/p>\n<p>Important signals are:<\/p>\n<p>-1  HUP (hang up)<br \/>\n-2  INT (interrupt)<br \/>\n-3  QUIT (quit)<br \/>\n-9  KILL (non-catchable, non-ignorable kill)<br \/>\n-15 TERM (software termination signal)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Singnals in Linux Terminate or send a signal with kill or killall<\/p>\n<p># kill -s TERM 4712 &#8212;&#8212;&#8211; same as kill -15 4712 # killall -1 httpd &#8212;&#8212;&#8211; Kill HUP processes by exact name # pkill -9 http &#8212;&#8212;&#8211; Kill TERM processes by (part of) name # pkill -TERM -u www &#8212;&#8212;- Kill TERM processes [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2372"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2372"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2372\/revisions"}],"predecessor-version":[{"id":2373,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2372\/revisions\/2373"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}