summaryrefslogtreecommitdiffstats
path: root/ansible/test/images/docker/centos7/dbus.service
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/test/images/docker/centos7/dbus.service')
-rw-r--r--ansible/test/images/docker/centos7/dbus.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/ansible/test/images/docker/centos7/dbus.service b/ansible/test/images/docker/centos7/dbus.service
new file mode 100644
index 00000000..69dbb153
--- /dev/null
+++ b/ansible/test/images/docker/centos7/dbus.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=D-Bus System Message Bus
+Requires=dbus.socket
+After=syslog.target
+
+[Service]
+PIDFile=/var/run/messagebus.pid
+ExecStartPre=/bin/mkdir -p /var/run/dbus
+ExecStartPre=/bin/chmod g+w /var/run/ /var/run/dbus/
+ExecStart=/bin/dbus-daemon --system --fork
+ExecReload=/bin/dbus-send --print-reply --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
+ExecStopPost=/bin/rm -f /var/run/messagebus.pid
+#OOMScoreAdjust=-900
+User=dbus
+Group=root
+PermissionsStartOnly=true