mkdir -p %{buildroot}%{_unitdir}/sockets.target.wants
ln -s ../%{service_name}.service %{buildroot}%{_unitdir}/multi-user.target.wants/%{service_name}.service
ln -s ../%{service_name}.socket %{buildroot}%{_unitdir}/sockets.target.wants/%{service_name}.socket
-
-mkdir -p %{buildroot}%{_unitdir}/default.target.wants
-mkdir -p %{buildroot}%{_unitdir}/sockets.target.wants
-ln -s ../%{service_name}-popup.service %{buildroot}%{_unitdir}/default.target.wants/%{service_name}-popup.service
ln -s ../%{service_name}-popup.socket %{buildroot}%{_unitdir}/sockets.target.wants/%{service_name}-popup.socket
mkdir -p %{buildroot}%{ro_data_dir}/license
%{_unitdir}/%{service_name}.service
%{_unitdir}/sockets.target.wants/%{service_name}.socket
%{_unitdir}/%{service_name}.socket
-%{_unitdir}/default.target.wants/%{service_name}-popup.service
%{_unitdir}/%{service_name}-popup.service
%{_unitdir}/sockets.target.wants/%{service_name}-popup.socket
%{_unitdir}/%{service_name}-popup.socket
Csr::Ui::PopupService service("/tmp/." SERVICE_NAME "-popup.socket");
- service.start(0);
+ // timeout when idle for 10 sec. If timeout time is too small and
+ // popup service wakes up repeatedly too quickly, it can be refused
+ // by systemd.
+ service.start(1000 * 10);
return 0;
} catch (const std::exception &e) {