[rygel] data: Add [Install] section to rygel.service
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] data: Add [Install] section to rygel.service
- Date: Tue, 30 Aug 2016 10:29:49 +0000 (UTC)
commit f14db2927d4f1e88baf1df8f5660d7281afea618
Author: Jan Alexander Steffens (heftig) <jan steffens gmail com>
Date: Mon May 23 21:05:30 2016 +0200
data: Add [Install] section to rygel.service
This allows running `systemctl --user enable rygel` in order to
automatically launch rygel at login. The default behavior is not
changed.
If lingering is also enabled for the user, rygel will be started
at boot; this will then share media without needing a session.
Since this disregards whether GSD would have launched rygel, it
is primarily useful for headless servers and avoids the wrap-dbus
hack used by the example system service.
https://bugzilla.gnome.org/show_bug.cgi?id=766332
data/rygel.service.in | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/data/rygel.service.in b/data/rygel.service.in
index 77cc9d7..6144176 100644
--- a/data/rygel.service.in
+++ b/data/rygel.service.in
@@ -6,3 +6,6 @@ Type=dbus
BusName=org.gnome.Rygel1
ExecStart=@bindir@/rygel
Restart=on-failure
+
+[Install]
+WantedBy=default.target
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]