{"id":237,"date":"2005-03-11T21:56:45","date_gmt":"2005-03-11T20:56:45","guid":{"rendered":"http:\/\/wp.devco.net\/?p=237"},"modified":"2009-10-09T17:06:54","modified_gmt":"2009-10-09T16:06:54","slug":"daemon8","status":"publish","type":"post","link":"https:\/\/www.devco.net\/archives\/2005\/03\/11\/daemon8.php","title":{"rendered":"daemon(8)"},"content":{"rendered":"

I’ve been trying to think of a good way to start the exim greylistd<\/a> which does not by default run in the background.
\nI remember reading about
daemonize<\/a> long ago and found it again via Google. I checked if my FreeBSD<\/a> machines has this command and stumbled on daemon(8)<\/a>.
\nIt was introduced around FreeBSD 4.7 and supports running any command in the background complete with pid file support.
\nI put the following command in a simple rc script so now I have a full start, stop, restart style command for greylistd.<\/p>\n

\n\/usr\/sbin\/daemon -cf -p \/var\/run\/greylistd.pid \/usr\/local\/sbin\/greylistd\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"

I’ve been trying to think of a good way to start the exim greylistd which does not by default run in the background. I remember reading about daemonize long ago and found it again via Google. I checked if my FreeBSD machines has this command and stumbled on daemon(8). It was introduced around FreeBSD 4.7 […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[5],"tags":[62,19,33],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/237"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=237"}],"version-history":[{"count":1,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/237\/revisions"}],"predecessor-version":[{"id":703,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/237\/revisions\/703"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}