summaryrefslogtreecommitdiffstats
path: root/remote/tools/dbus/data/etc
diff options
context:
space:
mode:
authorJonathan Bauer2012-12-20 12:49:40 +0100
committerJonathan Bauer2012-12-20 12:49:40 +0100
commit70a83bdbdee6b47380e7bc40cc864835bfc79043 (patch)
tree6718adad31694362bfcaec86981f52c62acfc3f5 /remote/tools/dbus/data/etc
parentcommented out agetty noclear option (diff)
downloadtm-scripts-70a83bdbdee6b47380e7bc40cc864835bfc79043.tar.gz
tm-scripts-70a83bdbdee6b47380e7bc40cc864835bfc79043.tar.xz
tm-scripts-70a83bdbdee6b47380e7bc40cc864835bfc79043.zip
static unit files for dbus, cleanup
Diffstat (limited to 'remote/tools/dbus/data/etc')
-rw-r--r--remote/tools/dbus/data/etc/systemd/system/dbus.service11
-rw-r--r--remote/tools/dbus/data/etc/systemd/system/dbus.socket5
l---------remote/tools/dbus/data/etc/systemd/system/dbus.target.wants/dbus.socket1
l---------remote/tools/dbus/data/etc/systemd/system/multi-user.target.wants/dbus.service1
l---------remote/tools/dbus/data/etc/systemd/system/sockets.target.wants/dbus.socket1
5 files changed, 19 insertions, 0 deletions
diff --git a/remote/tools/dbus/data/etc/systemd/system/dbus.service b/remote/tools/dbus/data/etc/systemd/system/dbus.service
new file mode 100644
index 00000000..5e22c812
--- /dev/null
+++ b/remote/tools/dbus/data/etc/systemd/system/dbus.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=D-Bus System Message Bus
+Requires=dbus.socket
+After=syslog.target
+
+[Service]
+ExecStartPre=//bin/dbus-uuidgen --ensure
+ExecStartPre=-/bin/rm -f /var/run/dbus/pid
+ExecStart=//bin/dbus-daemon --system --address=systemd: --nofork --activation=systemd
+ExecReload=//bin/dbus-send --print-reply --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
+OOMScoreAdjust=-900
diff --git a/remote/tools/dbus/data/etc/systemd/system/dbus.socket b/remote/tools/dbus/data/etc/systemd/system/dbus.socket
new file mode 100644
index 00000000..0303bfbd
--- /dev/null
+++ b/remote/tools/dbus/data/etc/systemd/system/dbus.socket
@@ -0,0 +1,5 @@
+[Unit]
+Description=D-Bus System Message Bus Socket
+
+[Socket]
+ListenStream=/var/run/dbus/system_bus_socket
diff --git a/remote/tools/dbus/data/etc/systemd/system/dbus.target.wants/dbus.socket b/remote/tools/dbus/data/etc/systemd/system/dbus.target.wants/dbus.socket
new file mode 120000
index 00000000..fe02d162
--- /dev/null
+++ b/remote/tools/dbus/data/etc/systemd/system/dbus.target.wants/dbus.socket
@@ -0,0 +1 @@
+../dbus.socket \ No newline at end of file
diff --git a/remote/tools/dbus/data/etc/systemd/system/multi-user.target.wants/dbus.service b/remote/tools/dbus/data/etc/systemd/system/multi-user.target.wants/dbus.service
new file mode 120000
index 00000000..224df24b
--- /dev/null
+++ b/remote/tools/dbus/data/etc/systemd/system/multi-user.target.wants/dbus.service
@@ -0,0 +1 @@
+../dbus.service \ No newline at end of file
diff --git a/remote/tools/dbus/data/etc/systemd/system/sockets.target.wants/dbus.socket b/remote/tools/dbus/data/etc/systemd/system/sockets.target.wants/dbus.socket
new file mode 120000
index 00000000..fe02d162
--- /dev/null
+++ b/remote/tools/dbus/data/etc/systemd/system/sockets.target.wants/dbus.socket
@@ -0,0 +1 @@
+../dbus.socket \ No newline at end of file