From f14db2927d4f1e88baf1df8f5660d7281afea618 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Mon, 23 May 2016 21:05:30 +0200 Subject: 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 file changed, 3 insertions(+) (limited to 'data') diff --git a/data/rygel.service.in b/data/rygel.service.in index 77cc9d76..61441760 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 -- cgit v1.2.1