]> code.ossystems Code Review - openembedded-core.git/commitdiff
neard: update service file
authorRoss Burton <ross.burton@intel.com>
Tue, 24 Jun 2014 09:45:58 +0000 (10:45 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Oct 2014 09:39:12 +0000 (10:39 +0100)
Update the service file to more closely match the service file that has been
committed upstream.

In particular we don't want to restart neard on failure (this results in it
restarting repeatedly if no NFC hardware is found), redirecting stdout to
/dev/null means that any messages are lost instead of being sent to the journal,
and the DBus alias is required for bus activation to work correctly.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-connectivity/neard/neard/neard.service.in

index 90e5302662c123928b3de331988080c95c4f599c..a6f8a841802609f22a190c6644e1b4ff7fbcbc9e 100644 (file)
@@ -1,13 +1,13 @@
 [Unit]
-Description=NFC service
+Description=neard service
+Documentation=man:neard(8)
 After=syslog.target
 
 [Service]
 Type=dbus
 BusName=org.neard
-Restart=on-failure
 ExecStart=@installpath@/neard -n
-StandardOutput=null
 
 [Install]
+Alias=dbus-org.neard.service
 WantedBy=multi-user.target