Allow setting of libexec location
[src/app-framework-main.git] / conf / system / afm-system-daemon.service.in
index ca4ca1d..fa83f11 100644 (file)
@@ -1,11 +1,12 @@
 [Unit]
 Description=Application Framework Master, system side
+Requires=afm-system-setup.service
 
 [Service]
 #User=afm
 #Group=afm
 SyslogIdentifier=afm-system-daemon
-ExecStart=/usr/bin/afb-daemon --name=afm-system-daemon --no-httpd --no-ldpaths --binding=@CMAKE_INSTALL_FULL_LIBEXECDIR@/afm/afm-binding.so --ws-server=sd:afm-main
+ExecStart=/usr/bin/afb-daemon --name=afm-system-daemon --no-httpd --no-ldpaths --binding=@afm_libexecdir@/afm-binding.so --ws-server=sd:afm-main
 Restart=on-failure
 RestartSec=5
 CapabilityBoundingSet=CAP_DAC_OVERRIDE CAP_MAC_OVERRIDE