X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fdaemon.h;h=371a21c25c6d2aa433f9712294ee3ee63c63fb9a;hp=b5ed96bb96edc3147950c615aec5cccc0a5a3e38;hb=30af0a1ebbea75c3e757eb03d3f988c61fce8511;hpb=4d95bcc1c92abde629616853b6a5d8e56444f5f3 diff --git a/include/yaz/daemon.h b/include/yaz/daemon.h index b5ed96b..371a21c 100644 --- a/include/yaz/daemon.h +++ b/include/yaz/daemon.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data. + * Copyright (C) Index Data. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -41,6 +41,7 @@ YAZ_BEGIN_CDECL #define YAZ_DAEMON_FORK 1 #define YAZ_DAEMON_DEBUG 2 #define YAZ_DAEMON_KEEPALIVE 4 +#define YAZ_DAEMON_LOG_REOPEN 8 /** \brief daemon utility. \param progname program name for logging purposes. @@ -59,8 +60,10 @@ YAZ_BEGIN_CDECL Flag YAZ_DAEMON_DEBUG: Puts the service in debug mode (no fork at all). - Flag YAZ_DAEMON_KEEPALIVE: Repeatedly calls work handler if it makes a + Flag YAZ_DAEMON_KEEPALIVE: Repeatedly calls work handler if it makes a "fatal" error. + + Flag YAZ_DAEMON_KEEPALIVE: Re-opens yaz log if SIGHUP is received */ YAZ_EXPORT int yaz_daemon(const char *progname,