summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--redhat/systemd/bcfg2-server.service13
-rw-r--r--redhat/systemd/bcfg2.service13
-rw-r--r--src/lib/Server/Plugin.py2
3 files changed, 27 insertions, 1 deletions
diff --git a/redhat/systemd/bcfg2-server.service b/redhat/systemd/bcfg2-server.service
new file mode 100644
index 000000000..641b02ec6
--- /dev/null
+++ b/redhat/systemd/bcfg2-server.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Bcfg2 configuration daemon
+After=syslog.target network.target
+
+[Service]
+Type=forking
+StandardOutput=syslog
+StandardError=syslog
+EnvironmentFile=-/etc/sysconfig/bcfg2
+ExecStart=/usr/bin/bcfg2-server $OPTIONS
+
+[Install]
+WantedBy=multi-user.target
diff --git a/redhat/systemd/bcfg2.service b/redhat/systemd/bcfg2.service
new file mode 100644
index 000000000..a0c3afd81
--- /dev/null
+++ b/redhat/systemd/bcfg2.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Bcfg2 configuration client
+After=syslog.target network.target
+
+[Service]
+Type=forking
+StandardOutput=syslog
+StandardError=syslog
+EnvironmentFile=-/etc/sysconfig/bcfg2
+ExecStart=/usr/bin/bcfg2 $OPTIONS
+
+[Install]
+WantedBy=multi-user.target
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py
index 3841e637d..a05c537e5 100644
--- a/src/lib/Server/Plugin.py
+++ b/src/lib/Server/Plugin.py
@@ -927,7 +927,7 @@ class GroupSpool(Plugin, Generator):
if not posixpath.isdir(epath):
# do not pass through directory events
self.entries[ident].handle_event(event)
- if action == 'changed':
+ if action == 'changed' and ident in self.entries:
self.entries[ident].handle_event(event)
elif action == 'deleted':
fbase = self.handles[event.requestID] + event.filename