Fix ac.service 83/10683/1
authorRusty Lynch <rusty.lynch@intel.com>
Wed, 9 Oct 2013 01:10:08 +0000 (18:10 -0700)
committerRusty Lynch <rusty.lynch@intel.com>
Wed, 9 Oct 2013 01:13:53 +0000 (18:13 -0700)
* Removed the mobile specific environment entries with a new
  EnvironmentFile entry added to allow profile specific entries
* Removed the horrible wait hack from the exec line.  This is not
  the way to handle dependencies
* Removed the precondition hacks which are not needed

Change-Id: I5e31a3df5d126358d850f08553231fc8f180614f
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
packaging/ac.service [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index c94fb73..2c393fc
@@ -1,15 +1,13 @@
 #
-# classical example of a socket activated service?
+#  Systemd script to Launch AMD
 #
 
 [Unit]
 Description=Start the Access Control server
 
 [Service]
-Environment=DISPLAY=:0
-ExecStartPre=-/bin/mkdir -m 1777 /tmp/alaunch
-ExecStartPre=/usr/bin/chsmack -a '*' /tmp/alaunch
-ExecStart=/bin/sh -c 'while test ! -e /tmp/.wm_ready; do sleep 0.1; done; exec /usr/bin/amd'
+EnvironmentFile=-/etc/sysconfig/prelaunch
+ExecStart=/usr/bin/amd
 
 OOMScoreAdjust=-100