event recipe/service updates

Make use of systemd and dbus class features.

Change-Id: Ia7d15bc830af4dc5d2d5bf7d497ec3cb34361369
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/common/recipes-phosphor/events/obmc-phosphor-event/obmc-phosphor-event.service b/common/recipes-phosphor/events/obmc-phosphor-event/obmc-phosphor-event.service
deleted file mode 100644
index 696d2b1..0000000
--- a/common/recipes-phosphor/events/obmc-phosphor-event/obmc-phosphor-event.service
+++ /dev/null
@@ -1,10 +0,0 @@
-[Unit]
-Description=Phosphor Event Manager
-
-[Service]
-EnvironmentFile=-/etc/default/eventd/eventd.conf
-Restart=always
-ExecStart={sbindir}/obmc-phosphor-eventd $OPTIONS
-
-[Install]
-WantedBy={SYSTEMD_DEFAULT_TARGET}
diff --git a/common/recipes-phosphor/events/obmc-phosphor-event/obmc/eventd/eventd.conf b/common/recipes-phosphor/events/obmc-phosphor-event/obmc/eventd/eventd.conf
new file mode 100644
index 0000000..b50dfbc
--- /dev/null
+++ b/common/recipes-phosphor/events/obmc-phosphor-event/obmc/eventd/eventd.conf
@@ -0,0 +1,4 @@
+LOG_SIZE_LIMIT="197376"
+LOG_COUNT_LIMIT="128"
+
+OPTIONS="-s ${LOG_SIZE_LIMIT} -t ${LOG_COUNT_LIMIT}"
diff --git a/common/recipes-phosphor/events/obmc-phosphor-event/org.openbmc.records.events.service b/common/recipes-phosphor/events/obmc-phosphor-event/org.openbmc.records.events.service
new file mode 100644
index 0000000..2af0136
--- /dev/null
+++ b/common/recipes-phosphor/events/obmc-phosphor-event/org.openbmc.records.events.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Phosphor Event Manager
+
+[Service]
+EnvironmentFile={envfiledir}/obmc/eventd/eventd.conf
+Restart=always
+ExecStart={sbindir}/phosphor-eventd $OPTIONS
+Type=dbus
+BusName={BUSNAME}
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}