From 07a6c353a26689e9907788d29d78f8b5c0212b31 Mon Sep 17 00:00:00 2001 From: Benedikt Morbach Date: Thu, 12 Jan 2012 15:17:26 +0100 Subject: Install a systemd service file if systemd is used This makes dbus defer starting upowerd to systemd instead of doing it itself and thus puts the daemon under proper systemd supervision. Signed-off-by: Richard Hughes --- src/upower.service.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/upower.service.in (limited to 'src/upower.service.in') diff --git a/src/upower.service.in b/src/upower.service.in new file mode 100644 index 0000000..3aea9e2 --- /dev/null +++ b/src/upower.service.in @@ -0,0 +1,14 @@ +[Unit] +Description=Daemon for power management + +[Service] +Type=dbus +BusName=org.freedesktop.UPower +ExecStart=@libexecdir@/upowerd + +[Install] +# We pull this in by graphical.target instead of waiting for the bus +# activation, to speed things up a little: gdm uses this anyway so it is nice +# if it is already around when gdm wants to use it and doesn't have to wait for +# it. +WantedBy=graphical.target -- cgit v1.2.1