teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0125-Revert-journald-allow-restarting-journald-without-lo.patch

803fb7
From 91cb89c1b79ef3c475d91319edb0c052cb9f2724 Mon Sep 17 00:00:00 2001
803fb7
From: Lukas Nykryn <lnykryn@redhat.com>
803fb7
Date: Wed, 15 Apr 2015 13:52:02 +0200
803fb7
Subject: [PATCH] Revert "journald: allow restarting journald without losing
803fb7
 stream connections"
803fb7
803fb7
This reverts commit 13790add4bf648fed816361794d8277a75253410.
803fb7
---
803fb7
 src/journal/journald-server.c     |  26 +--
803fb7
 src/journal/journald-stream.c     | 376 ++++++--------------------------------
803fb7
 src/journal/journald-stream.h     |   3 +-
803fb7
 units/systemd-journald.service.in |   1 -
803fb7
 4 files changed, 61 insertions(+), 345 deletions(-)
803fb7
803fb7
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
803fb7
index 7ee8174ea..04839c950 100644
803fb7
--- a/src/journal/journald-server.c
803fb7
+++ b/src/journal/journald-server.c
803fb7
@@ -1455,7 +1455,6 @@ static int server_open_hostname(Server *s) {
803fb7
 }
803fb7
 
803fb7
 int server_init(Server *s) {
803fb7
-        _cleanup_fdset_free_ FDSet *fds = NULL;
803fb7
         int n, r, fd;
803fb7
 
803fb7
         assert(s);
803fb7
@@ -1552,33 +1551,26 @@ int server_init(Server *s) {
803fb7
                         s->audit_fd = fd;
803fb7
 
803fb7
                 } else {
803fb7
+                        log_warning("Unknown socket passed as file descriptor %d, ignoring.", fd);
803fb7
 
803fb7
-                        if (!fds) {
803fb7
-                                fds = fdset_new();
803fb7
-                                if (!fds)
803fb7
-                                        return log_oom();
803fb7
-                        }
803fb7
+                        /* Let's close the fd, better be safe than
803fb7
+                           sorry. The fd might reference some resource
803fb7
+                           that we really want to release if we don't
803fb7
+                           make use of it. */
803fb7
 
803fb7
-                        r = fdset_put(fds, fd);
803fb7
-                        if (r < 0)
803fb7
-                                return log_oom();
803fb7
+                        safe_close(fd);
803fb7
                 }
803fb7
         }
803fb7
 
803fb7
-        r = server_open_stdout_socket(s, fds);
803fb7
+        r = server_open_syslog_socket(s);
803fb7
         if (r < 0)
803fb7
                 return r;
803fb7
 
803fb7
-        if (fdset_size(fds) > 0) {
803fb7
-                log_warning("%u unknown file descriptors passed, closing.", fdset_size(fds));
803fb7
-                fds = fdset_free(fds);
803fb7
-        }
803fb7
-
803fb7
-        r = server_open_syslog_socket(s);
803fb7
+        r = server_open_native_socket(s);
803fb7
         if (r < 0)
803fb7
                 return r;
803fb7
 
803fb7
-        r = server_open_native_socket(s);
803fb7
+        r = server_open_stdout_socket(s);
803fb7
         if (r < 0)
803fb7
                 return r;
803fb7
 
803fb7
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c
803fb7
index 942a85780..11b852d39 100644
803fb7
--- a/src/journal/journald-stream.c
803fb7
+++ b/src/journal/journald-stream.c
803fb7
@@ -28,11 +28,8 @@
803fb7
 #endif
803fb7
 
803fb7
 #include "sd-event.h"
803fb7
-#include "sd-daemon.h"
803fb7
 #include "socket-util.h"
803fb7
 #include "selinux-util.h"
803fb7
-#include "mkdir.h"
803fb7
-#include "fileio.h"
803fb7
 #include "journald-server.h"
803fb7
 #include "journald-stream.h"
803fb7
 #include "journald-syslog.h"
803fb7
@@ -72,153 +69,14 @@ struct StdoutStream {
803fb7
         bool forward_to_kmsg:1;
803fb7
         bool forward_to_console:1;
803fb7
 
803fb7
-        bool fdstore:1;
803fb7
-
803fb7
         char buffer[LINE_MAX+1];
803fb7
         size_t length;
803fb7
 
803fb7
         sd_event_source *event_source;
803fb7
 
803fb7
-        char *state_file;
803fb7
-
803fb7
         LIST_FIELDS(StdoutStream, stdout_stream);
803fb7
 };
803fb7
 
803fb7
-void stdout_stream_free(StdoutStream *s) {
803fb7
-        if (!s)
803fb7
-                return;
803fb7
-
803fb7
-        if (s->server) {
803fb7
-                assert(s->server->n_stdout_streams > 0);
803fb7
-                s->server->n_stdout_streams --;
803fb7
-                LIST_REMOVE(stdout_stream, s->server->stdout_streams, s);
803fb7
-        }
803fb7
-
803fb7
-        if (s->event_source) {
803fb7
-                sd_event_source_set_enabled(s->event_source, SD_EVENT_OFF);
803fb7
-                s->event_source = sd_event_source_unref(s->event_source);
803fb7
-        }
803fb7
-
803fb7
-        safe_close(s->fd);
803fb7
-
803fb7
-#ifdef HAVE_SELINUX
803fb7
-        if (s->security_context)
803fb7
-                freecon(s->security_context);
803fb7
-#endif
803fb7
-
803fb7
-        free(s->identifier);
803fb7
-        free(s->unit_id);
803fb7
-        free(s->state_file);
803fb7
-
803fb7
-        free(s);
803fb7
-}
803fb7
-
803fb7
-DEFINE_TRIVIAL_CLEANUP_FUNC(StdoutStream*, stdout_stream_free);
803fb7
-
803fb7
-static void stdout_stream_destroy(StdoutStream *s) {
803fb7
-        if (!s)
803fb7
-                return;
803fb7
-
803fb7
-        if (s->state_file)
803fb7
-                unlink(s->state_file);
803fb7
-
803fb7
-        stdout_stream_free(s);
803fb7
-}
803fb7
-
803fb7
-static int stdout_stream_save(StdoutStream *s) {
803fb7
-        _cleanup_free_ char *temp_path = NULL;
803fb7
-        _cleanup_fclose_ FILE *f = NULL;
803fb7
-        int r;
803fb7
-
803fb7
-        assert(s);
803fb7
-
803fb7
-        if (s->state != STDOUT_STREAM_RUNNING)
803fb7
-                return 0;
803fb7
-
803fb7
-        if (!s->state_file) {
803fb7
-                struct stat st;
803fb7
-
803fb7
-                r = fstat(s->fd, &st);
803fb7
-                if (r < 0)
803fb7
-                        return log_warning_errno(errno, "Failed to stat connected stream: %m");
803fb7
-
803fb7
-                /* We use device and inode numbers as identifier for the stream */
803fb7
-                if (asprintf(&s->state_file, "/run/systemd/journal/streams/%lu:%lu", (unsigned long) st.st_dev, (unsigned long) st.st_ino) < 0)
803fb7
-                        return log_oom();
803fb7
-        }
803fb7
-
803fb7
-        mkdir_p("/run/systemd/journal/streams", 0755);
803fb7
-
803fb7
-        r = fopen_temporary(s->state_file, &f, &temp_path);
803fb7
-        if (r < 0)
803fb7
-                goto finish;
803fb7
-
803fb7
-        fprintf(f,
803fb7
-                "# This is private data. Do not parse\n"
803fb7
-                "PRIORITY=%i\n"
803fb7
-                "LEVEL_PREFIX=%i\n"
803fb7
-                "FORWARD_TO_SYSLOG=%i\n"
803fb7
-                "FORWARD_TO_KMSG=%i\n"
803fb7
-                "FORWARD_TO_CONSOLE=%i\n",
803fb7
-                s->priority,
803fb7
-                s->level_prefix,
803fb7
-                s->forward_to_syslog,
803fb7
-                s->forward_to_kmsg,
803fb7
-                s->forward_to_console);
803fb7
-
803fb7
-        if (!isempty(s->identifier)) {
803fb7
-                _cleanup_free_ char *escaped;
803fb7
-
803fb7
-                escaped = cescape(s->identifier);
803fb7
-                if (!escaped) {
803fb7
-                        r = -ENOMEM;
803fb7
-                        goto finish;
803fb7
-                }
803fb7
-
803fb7
-                fprintf(f, "IDENTIFIER=%s\n", escaped);
803fb7
-        }
803fb7
-
803fb7
-        if (!isempty(s->unit_id)) {
803fb7
-                _cleanup_free_ char *escaped;
803fb7
-
803fb7
-                escaped = cescape(s->unit_id);
803fb7
-                if (!escaped) {
803fb7
-                        r = -ENOMEM;
803fb7
-                        goto finish;
803fb7
-                }
803fb7
-
803fb7
-                fprintf(f, "UNIT=%s\n", escaped);
803fb7
-        }
803fb7
-
803fb7
-        r = fflush_and_check(f);
803fb7
-        if (r < 0)
803fb7
-                goto finish;
803fb7
-
803fb7
-        if (rename(temp_path, s->state_file) < 0) {
803fb7
-                r = -errno;
803fb7
-                goto finish;
803fb7
-        }
803fb7
-
803fb7
-        free(temp_path);
803fb7
-        temp_path = NULL;
803fb7
-
803fb7
-        /* Store the connection fd in PID 1, so that we get it passed
803fb7
-         * in again on next start */
803fb7
-        if (!s->fdstore) {
803fb7
-                sd_pid_notify_with_fds(0, false, "FDSTORE=1", &s->fd, 1);
803fb7
-                s->fdstore = true;
803fb7
-        }
803fb7
-
803fb7
-finish:
803fb7
-        if (temp_path)
803fb7
-                unlink(temp_path);
803fb7
-
803fb7
-        if (r < 0)
803fb7
-                log_error_errno(r, "Failed to save stream data %s: %m", s->state_file);
803fb7
-
803fb7
-        return r;
803fb7
-}
803fb7
-
803fb7
 static int stdout_stream_log(StdoutStream *s, const char *p) {
803fb7
         struct iovec iovec[N_IOVEC_META_FIELDS + 5];
803fb7
         int priority;
803fb7
@@ -371,9 +229,6 @@ static int stdout_stream_line(StdoutStream *s, char *p) {
803fb7
 
803fb7
                 s->forward_to_console = !!r;
803fb7
                 s->state = STDOUT_STREAM_RUNNING;
803fb7
-
803fb7
-                /* Try to save the stream, so that journald can be restarted and we can recover */
803fb7
-                (void) stdout_stream_save(s);
803fb7
                 return 0;
803fb7
 
803fb7
         case STDOUT_STREAM_RUNNING:
803fb7
@@ -468,63 +323,40 @@ static int stdout_stream_process(sd_event_source *es, int fd, uint32_t revents,
803fb7
         return 1;
803fb7
 
803fb7
 terminate:
803fb7
-        stdout_stream_destroy(s);
803fb7
+        stdout_stream_free(s);
803fb7
         return 0;
803fb7
 }
803fb7
 
803fb7
-static int stdout_stream_install(Server *s, int fd, StdoutStream **ret) {
803fb7
-        _cleanup_(stdout_stream_freep) StdoutStream *stream = NULL;
803fb7
-        int r;
803fb7
-
803fb7
+void stdout_stream_free(StdoutStream *s) {
803fb7
         assert(s);
803fb7
-        assert(fd >= 0);
803fb7
 
803fb7
-        stream = new0(StdoutStream, 1);
803fb7
-        if (!stream)
803fb7
-                return log_oom();
803fb7
+        if (s->server) {
803fb7
+                assert(s->server->n_stdout_streams > 0);
803fb7
+                s->server->n_stdout_streams --;
803fb7
+                LIST_REMOVE(stdout_stream, s->server->stdout_streams, s);
803fb7
+        }
803fb7
 
803fb7
-        stream->fd = -1;
803fb7
-        stream->priority = LOG_INFO;
803fb7
+        if (s->event_source) {
803fb7
+                sd_event_source_set_enabled(s->event_source, SD_EVENT_OFF);
803fb7
+                s->event_source = sd_event_source_unref(s->event_source);
803fb7
+        }
803fb7
 
803fb7
-        r = getpeercred(fd, &stream->ucred);
803fb7
-        if (r < 0)
803fb7
-                return log_error_errno(r, "Failed to determine peer credentials: %m");
803fb7
+        safe_close(s->fd);
803fb7
 
803fb7
 #ifdef HAVE_SELINUX
803fb7
-        if (mac_selinux_use()) {
803fb7
-                if (getpeercon(fd, &stream->security_context) < 0 && errno != ENOPROTOOPT)
803fb7
-                        log_error_errno(errno, "Failed to determine peer security context: %m");
803fb7
-        }
803fb7
+        if (s->security_context)
803fb7
+                freecon(s->security_context);
803fb7
 #endif
803fb7
 
803fb7
-        (void) shutdown(fd, SHUT_WR);
803fb7
-
803fb7
-        r = sd_event_add_io(s->event, &stream->event_source, fd, EPOLLIN, stdout_stream_process, stream);
803fb7
-        if (r < 0)
803fb7
-                return log_error_errno(r, "Failed to add stream to event loop: %m");
803fb7
-
803fb7
-        r = sd_event_source_set_priority(stream->event_source, SD_EVENT_PRIORITY_NORMAL+5);
803fb7
-        if (r < 0)
803fb7
-                return log_error_errno(r, "Failed to adjust stdout event source priority: %m");
803fb7
-
803fb7
-        stream->fd = fd;
803fb7
-
803fb7
-        stream->server = s;
803fb7
-        LIST_PREPEND(stdout_stream, s->stdout_streams, stream);
803fb7
-        s->n_stdout_streams ++;
803fb7
-
803fb7
-        if (ret)
803fb7
-                *ret = stream;
803fb7
-
803fb7
-        stream = NULL;
803fb7
-
803fb7
-        return 0;
803fb7
+        free(s->identifier);
803fb7
+        free(s->unit_id);
803fb7
+        free(s);
803fb7
 }
803fb7
 
803fb7
 static int stdout_stream_new(sd_event_source *es, int listen_fd, uint32_t revents, void *userdata) {
803fb7
-        _cleanup_close_ int fd = -1;
803fb7
         Server *s = userdata;
803fb7
-        int r;
803fb7
+        StdoutStream *stream;
803fb7
+        int fd, r;
803fb7
 
803fb7
         assert(s);
803fb7
 
803fb7
@@ -544,163 +376,60 @@ static int stdout_stream_new(sd_event_source *es, int listen_fd, uint32_t revent
803fb7
 
803fb7
         if (s->n_stdout_streams >= STDOUT_STREAMS_MAX) {
803fb7
                 log_warning("Too many stdout streams, refusing connection.");
803fb7
+                safe_close(fd);
803fb7
                 return 0;
803fb7
         }
803fb7
 
803fb7
-        r = stdout_stream_install(s, fd, NULL);
803fb7
-        if (r < 0)
803fb7
-                return r;
803fb7
-
803fb7
-        fd = -1;
803fb7
-        return 0;
803fb7
-}
803fb7
-
803fb7
-static int stdout_stream_load(StdoutStream *stream, const char *fname) {
803fb7
-        _cleanup_free_ char
803fb7
-                *priority = NULL,
803fb7
-                *level_prefix = NULL,
803fb7
-                *forward_to_syslog = NULL,
803fb7
-                *forward_to_kmsg = NULL,
803fb7
-                *forward_to_console = NULL;
803fb7
-        int r;
803fb7
-
803fb7
-        assert(stream);
803fb7
-        assert(fname);
803fb7
-
803fb7
-        if (!stream->state_file) {
803fb7
-                stream->state_file = strappend("/run/systemd/journal/streams/", fname);
803fb7
-                if (!stream->state_file)
803fb7
-                        return log_oom();
803fb7
-        }
803fb7
-
803fb7
-        r = parse_env_file(stream->state_file, NEWLINE,
803fb7
-                           "PRIORITY", &priority,
803fb7
-                           "LEVEL_PREFIX", &level_prefix,
803fb7
-                           "FORWARD_TO_SYSLOG", &forward_to_syslog,
803fb7
-                           "FORWARD_TO_KMSG", &forward_to_kmsg,
803fb7
-                           "FORWARD_TO_CONSOLE", &forward_to_console,
803fb7
-                           "IDENTIFIER", &stream->identifier,
803fb7
-                           "UNIT", &stream->unit_id,
803fb7
-                           NULL);
803fb7
-        if (r < 0)
803fb7
-                return log_error_errno(r, "Failed to read: %s", stream->state_file);
803fb7
-
803fb7
-        if (priority) {
803fb7
-                int p;
803fb7
-
803fb7
-                p = log_level_from_string(priority);
803fb7
-                if (p >= 0)
803fb7
-                        stream->priority = p;
803fb7
+        stream = new0(StdoutStream, 1);
803fb7
+        if (!stream) {
803fb7
+                safe_close(fd);
803fb7
+                return log_oom();
803fb7
         }
803fb7
 
803fb7
-        if (level_prefix) {
803fb7
-                r = parse_boolean(level_prefix);
803fb7
-                if (r >= 0)
803fb7
-                        stream->level_prefix = r;
803fb7
-        }
803fb7
+        stream->fd = fd;
803fb7
 
803fb7
-        if (forward_to_syslog) {
803fb7
-                r = parse_boolean(forward_to_syslog);
803fb7
-                if (r >= 0)
803fb7
-                        stream->forward_to_syslog = r;
803fb7
+        r = getpeercred(fd, &stream->ucred);
803fb7
+        if (r < 0) {
803fb7
+                log_error_errno(errno, "Failed to determine peer credentials: %m");
803fb7
+                goto fail;
803fb7
         }
803fb7
 
803fb7
-        if (forward_to_kmsg) {
803fb7
-                r = parse_boolean(forward_to_kmsg);
803fb7
-                if (r >= 0)
803fb7
-                        stream->forward_to_kmsg = r;
803fb7
+#ifdef HAVE_SELINUX
803fb7
+        if (mac_selinux_use()) {
803fb7
+                if (getpeercon(fd, &stream->security_context) < 0 && errno != ENOPROTOOPT)
803fb7
+                        log_error_errno(errno, "Failed to determine peer security context: %m");
803fb7
         }
803fb7
+#endif
803fb7
 
803fb7
-        if (forward_to_console) {
803fb7
-                r = parse_boolean(forward_to_console);
803fb7
-                if (r >= 0)
803fb7
-                        stream->forward_to_console = r;
803fb7
+        if (shutdown(fd, SHUT_WR) < 0) {
803fb7
+                log_error_errno(errno, "Failed to shutdown writing side of socket: %m");
803fb7
+                goto fail;
803fb7
         }
803fb7
 
803fb7
-        return 0;
803fb7
-}
803fb7
-
803fb7
-static int stdout_stream_restore(Server *s, const char *fname, int fd) {
803fb7
-        StdoutStream *stream;
803fb7
-        int r;
803fb7
-
803fb7
-        assert(s);
803fb7
-        assert(fname);
803fb7
-        assert(fd >= 0);
803fb7
-
803fb7
-        if (s->n_stdout_streams >= STDOUT_STREAMS_MAX) {
803fb7
-                log_warning("Too many stdout streams, refusing restoring of stream.");
803fb7
-                return -ENOBUFS;
803fb7
+        r = sd_event_add_io(s->event, &stream->event_source, fd, EPOLLIN, stdout_stream_process, stream);
803fb7
+        if (r < 0) {
803fb7
+                log_error_errno(r, "Failed to add stream to event loop: %m");
803fb7
+                goto fail;
803fb7
         }
803fb7
 
803fb7
-        r = stdout_stream_install(s, fd, &stream);
803fb7
-        if (r < 0)
803fb7
-                return r;
803fb7
-
803fb7
-        stream->state = STDOUT_STREAM_RUNNING;
803fb7
-        stream->fdstore = true;
803fb7
-
803fb7
-        /* Ignore all parsing errors */
803fb7
-        (void) stdout_stream_load(stream, fname);
803fb7
-
803fb7
-        return 0;
803fb7
-}
803fb7
-
803fb7
-static int server_restore_streams(Server *s, FDSet *fds) {
803fb7
-        _cleanup_closedir_ DIR *d = NULL;
803fb7
-        struct dirent *de;
803fb7
-        int r;
803fb7
-
803fb7
-        d = opendir("/run/systemd/journal/streams");
803fb7
-        if (!d) {
803fb7
-                if (errno == ENOENT)
803fb7
-                        return 0;
803fb7
-
803fb7
-                return log_warning_errno(errno, "Failed to enumerate /run/systemd/journal/streams: %m");
803fb7
+        r = sd_event_source_set_priority(stream->event_source, SD_EVENT_PRIORITY_NORMAL+5);
803fb7
+        if (r < 0) {
803fb7
+                log_error_errno(r, "Failed to adjust stdout event source priority: %m");
803fb7
+                goto fail;
803fb7
         }
803fb7
 
803fb7
-        FOREACH_DIRENT(de, d, goto fail) {
803fb7
-                unsigned long st_dev, st_ino;
803fb7
-                bool found = false;
803fb7
-                Iterator i;
803fb7
-                int fd;
803fb7
-
803fb7
-                if (sscanf(de->d_name, "%lu:%lu", &st_dev, &st_ino) != 2)
803fb7
-                        continue;
803fb7
-
803fb7
-                FDSET_FOREACH(fd, fds, i) {
803fb7
-                        struct stat st;
803fb7
-
803fb7
-                        if (fstat(fd, &st) < 0)
803fb7
-                                return log_error_errno(errno, "Failed to stat %s: %m", de->d_name);
803fb7
-
803fb7
-                        if (S_ISSOCK(st.st_mode) && st.st_dev == st_dev && st.st_ino == st_ino) {
803fb7
-                                found = true;
803fb7
-                                break;
803fb7
-                        }
803fb7
-                }
803fb7
-
803fb7
-                if (!found) {
803fb7
-                        /* No file descriptor? Then let's delete the state file */
803fb7
-                        log_debug("Cannot restore stream file %s", de->d_name);
803fb7
-                        unlinkat(dirfd(d), de->d_name, 0);
803fb7
-                        continue;
803fb7
-                }
803fb7
-
803fb7
-                fdset_remove(fds, fd);
803fb7
-
803fb7
-                r = stdout_stream_restore(s, de->d_name, fd);
803fb7
-                if (r < 0)
803fb7
-                        safe_close(fd);
803fb7
-        }
803fb7
+        stream->server = s;
803fb7
+        LIST_PREPEND(stdout_stream, s->stdout_streams, stream);
803fb7
+        s->n_stdout_streams ++;
803fb7
 
803fb7
         return 0;
803fb7
 
803fb7
 fail:
803fb7
-        return log_error_errno(errno, "Failed to read streams directory: %m");
803fb7
+        stdout_stream_free(stream);
803fb7
+        return 0;
803fb7
 }
803fb7
 
803fb7
-int server_open_stdout_socket(Server *s, FDSet *fds) {
803fb7
+int server_open_stdout_socket(Server *s) {
803fb7
         int r;
803fb7
 
803fb7
         assert(s);
803fb7
@@ -736,8 +465,5 @@ int server_open_stdout_socket(Server *s, FDSet *fds) {
803fb7
         if (r < 0)
803fb7
                 return log_error_errno(r, "Failed to adjust priority of stdout server event source: %m");
803fb7
 
803fb7
-        /* Try to restore streams, but don't bother if this fails */
803fb7
-        (void) server_restore_streams(s, fds);
803fb7
-
803fb7
         return 0;
803fb7
 }
803fb7
diff --git a/src/journal/journald-stream.h b/src/journal/journald-stream.h
803fb7
index 94bf955d7..8cad01296 100644
803fb7
--- a/src/journal/journald-stream.h
803fb7
+++ b/src/journal/journald-stream.h
803fb7
@@ -21,9 +21,8 @@
803fb7
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
803fb7
 ***/
803fb7
 
803fb7
-#include "fdset.h"
803fb7
 #include "journald-server.h"
803fb7
 
803fb7
-int server_open_stdout_socket(Server *s, FDSet *fds);
803fb7
+int server_open_stdout_socket(Server *s);
803fb7
 
803fb7
 void stdout_stream_free(StdoutStream *s);
803fb7
diff --git a/units/systemd-journald.service.in b/units/systemd-journald.service.in
803fb7
index a3540c65d..87704bb9c 100644
803fb7
--- a/units/systemd-journald.service.in
803fb7
+++ b/units/systemd-journald.service.in
803fb7
@@ -23,7 +23,6 @@ NotifyAccess=all
803fb7
 StandardOutput=null
803fb7
 CapabilityBoundingSet=CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_SYS_PTRACE CAP_SYSLOG CAP_AUDIT_CONTROL CAP_AUDIT_READ CAP_CHOWN CAP_DAC_READ_SEARCH CAP_FOWNER CAP_SETUID CAP_SETGID CAP_MAC_OVERRIDE
803fb7
 WatchdogSec=1min
803fb7
-FileDescriptorStoreMax=1024
803fb7
 
803fb7
 # Increase the default a bit in order to allow many simultaneous
803fb7
 # services being run since we keep one fd open per service. Also, when