mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
install -m 0644 %SOURCE101 %{buildroot}%{_libdir}/systemd/system/launchpad-preload@.service
+install -m 0644 %SOURCE102 %{buildroot}%{_libdir}/systemd/system/ac.service
ln -s ../launchpad-preload@.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/launchpad-preload@app.service
-
-mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants
-install -m 0644 %SOURCE102 %{buildroot}%{_libdir}/systemd/user/ac.service
-ln -s ../ac.service %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants/ac.service
+ln -s ../ac.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/ac.service
%preun
if [ $1 == 0 ]; then
systemctl stop launchpad-preload@app.service
+ systemctl stop ac.service
fi
%post
systemctl daemon-reload
if [ $1 == 1 ]; then
systemctl restart launchpad-preload@app.service
+ systemctl restart ac.service
fi
%postun -p /sbin/ldconfig
/usr/share/aul/preexec_list.txt
%{_bindir}/launchpad_preloading_preinitializing_daemon
%{_libdir}/systemd/system/multi-user.target.wants/launchpad-preload@app.service
+%{_libdir}/systemd/system/multi-user.target.wants/ac.service
%{_libdir}/systemd/system/launchpad-preload@.service
-%{_libdir}/systemd/user/tizen-middleware.target.wants/ac.service
-%{_libdir}/systemd/user/ac.service
+%{_libdir}/systemd/system/ac.service
/usr/bin/amd
/usr/bin/daemon-manager-release-agent
/usr/bin/daemon-manager-launch-agent
-
%files devel
/usr/include/aul/*.h
%{_libdir}/*.so