Log under facility LOCAL0
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2772
d4fa192b-c00b-0410-8231-
f00ffab90ce4
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <syslog.h>
#include <time.h>
#include <unistd.h>
exit(1);
}
+ if (n_arg != NULL)
+ openlog(n_arg, LOG_PID, LOG_LOCAL0);
+ else
+ openlog("varnishd", LOG_PID, LOG_LOCAL0);
+
if (mkdir(dirname, 0755) < 0 && errno != EEXIST) {
fprintf(stderr, "Cannot create working directory '%s': %s\n",
dirname, strerror(errno));