Use the daemon-atrestart function in place of the obsolete magnus_atrestart function.
The magnus_atrestart function enables you to register a callback function named by fn to be used when the server receives a restart signal. Use this function when you need a callback function to deallocate resources allocated by an initialization function.
#include <netsite.h> void magnus_atrestart(void (*fn)(void *), void *data);
void
void (* fn) (void *) is the callback function.
void *data is the parameter passed to the callback function when the server is restarted.
/* Close log file when server is restarted */ magnus_atrestart(brief_terminate, NULL);return REQPROCEED;