Reorganize systemd units 13/91813/1
authorTomasz Swierczek <t.swierczek@samsung.com>
Tue, 11 Oct 2016 12:41:09 +0000 (14:41 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Tue, 11 Oct 2016 12:41:09 +0000 (14:41 +0200)
Even if enabled, askuser daemon didn't start after system reboot

Change-Id: I8d00db7543ba67b771fd709b858d54da884c07b7

packaging/askuser.spec
systemd/askuser.service

index 341fa6d..c182f83 100644 (file)
@@ -92,7 +92,9 @@ rm -rf %{buildroot}
 %post
 # todo properly use systemd --user
 ln -s /lib/systemd/user/askuser-notification.service \
-/usr/lib/systemd/user/default.target.wants/askuser-notification.service 2> /dev/null
+/usr/lib/systemd/user/default.target.wants/askuser-notification.service
+ln -s /usr/lib/systemd/system/askuser.service \
+/usr/lib/systemd/system/multi-user.target.wants/askuser.service
 
 systemctl daemon-reload
 
index 5ee43f8..e8cd660 100644 (file)
@@ -1,5 +1,6 @@
 [Unit]
 Description=Ask user agent
+Before=dbus.service
 
 [Service]
 ExecStart=/usr/bin/askuser