Fix macros and adjust the point where service starts to after networking

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
2026-05-12 11:43:21 -05:00
parent 4c9436a821
commit 18eb450ac1
3 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
[Unit] [Unit]
Description=RustDesk Relay server Description=RustDesk Relay server
After=network.target After=network-online.target
Wants=network-online.target
[Service] [Service]
Type=simple Type=simple
+2 -1
View File
@@ -1,6 +1,7 @@
[Unit] [Unit]
Description=RustDesk ID/Rendezvous server Description=RustDesk ID/Rendezvous server
After=network.target After=network-online.target
Wants=network-online.target
[Service] [Service]
Type=simple Type=simple
+3 -3
View File
@@ -35,7 +35,7 @@ BuildRequires: openssl-devel
BuildRequires: systemd-rpm-macros BuildRequires: systemd-rpm-macros
Requires: firewalld-filesystem Requires: firewalld-filesystem
%{?systemd_requires} %{?systemd_requires}
%sysusers_requires %{?sysusers_requires_compat}
%description %description
RustDesk Server Program. Includes the hbbs (RustDesk ID/Rendezvous server) RustDesk Server Program. Includes the hbbs (RustDesk ID/Rendezvous server)
@@ -80,7 +80,7 @@ mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 0644 %{SOURCE7} %{buildroot}%{_tmpfilesdir}/%{name}.conf install -m 0644 %{SOURCE7} %{buildroot}%{_tmpfilesdir}/%{name}.conf
%pre %pre
%sysusers_create_compat %{name}.conf %sysusers_create_compat %{SOURCE6}
%post %post
%systemd_post hbbs.service hbbr.service %systemd_post hbbs.service hbbr.service
@@ -102,7 +102,7 @@ systemd-tmpfiles --create %{name}.conf || :
%{_unitdir}/hbbr.service %{_unitdir}/hbbr.service
%{_sysusersdir}/%{name}.conf %{_sysusersdir}/%{name}.conf
%{_tmpfilesdir}/%{name}.conf %{_tmpfilesdir}/%{name}.conf
%dir %{_sharedstatedir}/%{name} %attr(0750, rustdesk, rustdesk) %dir %{_sharedstatedir}/%{name}
%changelog %changelog
* Tue May 12 2026 Jason Rothstein * Tue May 12 2026 Jason Rothstein