Skip to content

Commit

Permalink
Merge branch 'jb37678_systemd_service' into 'master'
Browse files Browse the repository at this point in the history
Handle D-Bus autostart via systemd

See merge request !1
  • Loading branch information
spiiroin committed Jun 13, 2017
2 parents 71f6fbe + 634eb74 commit 28ce1e3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -347,6 +347,9 @@ else
install -m755 -d $(ROOT)$(PREFIX)/share/dbus-1/services
install -m644 profiled.service \
$(ROOT)$(PREFIX)/share/dbus-1/services/profiled.service
install -m755 -d $(ROOT)$(PREFIX)/lib/systemd/user/
install -m644 systemd/profiled.service \
$(ROOT)$(PREFIX)/lib/systemd/user/
endif
# ----------------------------------------------------------------------------
# profileclient.deb
Expand Down
3 changes: 2 additions & 1 deletion profiled.service
@@ -1,3 +1,4 @@
[D-BUS Service]
Name=com.nokia.profiled
Exec=/usr/bin/profiled
Exec=/bin/false
SystemdService=profiled.service
1 change: 1 addition & 0 deletions rpm/profiled.spec
Expand Up @@ -87,6 +87,7 @@ rm %{buildroot}/%{_libdir}/libprofile.a
%{_bindir}/%{name}
%{_libdir}/libprofile.so.*
%{_datadir}/dbus-1/services/profiled.service
%{_libdir}/systemd/user/profiled.service

%files doc
%defattr(-,root,root,-)
Expand Down
7 changes: 7 additions & 0 deletions systemd/profiled.service
@@ -0,0 +1,7 @@
[Unit]
Description=Profile Daemon

[Service]
Type=dbus
BusName=com.nokia.profiled
ExecStart=/usr/bin/profiled

0 comments on commit 28ce1e3

Please sign in to comment.