summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2016-05-23 21:05:30 +0200
committerBastien Nocera <hadess@hadess.net>2016-08-30 12:28:51 +0200
commitf14db2927d4f1e88baf1df8f5660d7281afea618 (patch)
tree836abd26f4c514898f79a713fbe450912e96b066 /data
parentb5cecc3b61359d97033a98e435d0fc3b417f1203 (diff)
downloadrygel-f14db2927d4f1e88baf1df8f5660d7281afea618.tar.gz
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
Diffstat (limited to 'data')
-rw-r--r--data/rygel.service.in3
1 files changed, 3 insertions, 0 deletions
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