diff options
author | Benedikt Morbach <benedikt.morbach@googlemail.com> | 2012-01-12 15:17:26 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2012-01-17 11:08:18 +0000 |
commit | 07a6c353a26689e9907788d29d78f8b5c0212b31 (patch) | |
tree | 15976e6807e7cdaf3986a2a121282a17ba537a88 /src/upower.service.in | |
parent | 38d65955f4520e13b8490dba9a0a145a95bc37fc (diff) | |
download | upower-07a6c353a26689e9907788d29d78f8b5c0212b31.tar.gz |
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 <richard@hughsie.com>
Diffstat (limited to 'src/upower.service.in')
-rw-r--r-- | src/upower.service.in | 14 |
1 files changed, 14 insertions, 0 deletions
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 |