* 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>
#
-# 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