Le lundi 17 août 2009 à 16:33 +0200, Julien Valroff a écrit :
> Hi,
>
> I have an issue when sending SIGHUP signal to dspam daemon.
>
> DSPAM restarts successfully, but there is a warning message in syslog
> "Unable to open file for writing: : No such file or directory"
>
> I happened to see different message when using storage profiles:
> Aug 17 15:40:56 nix dspam[26202]: Unable to open file for writing: ck:
> Permission denied
> Aug 17 15:40:56 nix dspam[25874]: Unable to open file for writing: : No such
> file or directory
>
> (sometimes only the first line, and sometimes even nothing)
>
> I think the "sk" is related to "sock" (not sure if it is the mysqld.sock
> used as default profile, or the dspam.sock however).
>
> The pid file is however not re-created (should it even be removed when
> using SIGHUP??)
[...]
Would it be linked to the "background" patch applied to Debian:
diff -urNad dspam-3.6.2~/src/dspam.c dspam-3.6.2/src/dspam.c
--- dspam-3.6.2~/src/dspam.c 2006-01-02 12:40:52.000000000 +0100
+++ dspam-3.6.2/src/dspam.c 2006-01-02 12:43:04.566063250 +0100
@@ -3830,6 +3830,11 @@
DRIVER_CTX DTX;
char *pidfile;
+ /* Fork dspam into the background */
+ if (fork()) {
+ exit(EXIT_SUCCESS);
+ }
+
__daemon_run = 1;
__num_threads = 0;
__hup = 0;
If so, are there any better alternatives?
Cheers,
Julien
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Dspam-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-devel