commit:     372e0e11f3768b2f50eb844f5ae430498bc73fc5
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 13 13:39:39 2022 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Wed Apr 13 13:39:39 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=372e0e11

net-wireless/unifi: fix systemd unit

Closes: https://bugs.gentoo.org/837908
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 net-wireless/unifi/files/{unifi.service-r1 => unifi.service-r2}       | 4 ++--
 net-wireless/unifi/{unifi-6.5.55-r1.ebuild => unifi-6.5.55-r2.ebuild} | 2 +-
 net-wireless/unifi/{unifi-7.0.25-r1.ebuild => unifi-7.0.25-r2.ebuild} | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/net-wireless/unifi/files/unifi.service-r1 
b/net-wireless/unifi/files/unifi.service-r2
similarity index 78%
rename from net-wireless/unifi/files/unifi.service-r1
rename to net-wireless/unifi/files/unifi.service-r2
index a9b98e25de41..40fff6c81797 100644
--- a/net-wireless/unifi/files/unifi.service-r1
+++ b/net-wireless/unifi/files/unifi.service-r2
@@ -1,6 +1,6 @@
 [Unit]
 Description=UniFi Controller
-After=network-online.target
+After=network.target
 
 [Service]
 Type=simple
@@ -11,4 +11,4 @@ ExecStart=/usr/bin/unifi start
 ExecStop=/usr/bin/unifi stop
 
 [Install]
-WantedBy=network.target
+WantedBy=multi-user.target

diff --git a/net-wireless/unifi/unifi-6.5.55-r1.ebuild 
b/net-wireless/unifi/unifi-6.5.55-r2.ebuild
similarity index 97%
rename from net-wireless/unifi/unifi-6.5.55-r1.ebuild
rename to net-wireless/unifi/unifi-6.5.55-r2.ebuild
index aea001cc7e1f..248c2222fb5a 100644
--- a/net-wireless/unifi/unifi-6.5.55-r1.ebuild
+++ b/net-wireless/unifi/unifi-6.5.55-r2.ebuild
@@ -85,7 +85,7 @@ src_install() {
        java-pkg_dolauncher unifi --java_args 
'-Dorg.xerial.snappy.tempdir=/usr/lib/unifi/tmp -Djava.library.path=' --jar 
ace.jar --pwd '/usr/lib/unifi'
 
        newinitd "${FILESDIR}"/unifi.initd-r2 unifi
-       systemd_newunit "${FILESDIR}"/unifi.service-r1 unifi.service
+       systemd_newunit "${FILESDIR}"/unifi.service-r2 unifi.service
 
        newconfd "${FILESDIR}"/unifi.confd unifi
 

diff --git a/net-wireless/unifi/unifi-7.0.25-r1.ebuild 
b/net-wireless/unifi/unifi-7.0.25-r2.ebuild
similarity index 97%
rename from net-wireless/unifi/unifi-7.0.25-r1.ebuild
rename to net-wireless/unifi/unifi-7.0.25-r2.ebuild
index 24936b556d77..3466b4b1d3b2 100644
--- a/net-wireless/unifi/unifi-7.0.25-r1.ebuild
+++ b/net-wireless/unifi/unifi-7.0.25-r2.ebuild
@@ -85,7 +85,7 @@ src_install() {
        java-pkg_dolauncher unifi --java_args 
'-Dorg.xerial.snappy.tempdir=/usr/lib/unifi/tmp -Djava.library.path=' --jar 
ace.jar --pwd '/usr/lib/unifi'
 
        newinitd "${FILESDIR}"/unifi.initd-r2 unifi
-       systemd_newunit "${FILESDIR}"/unifi.service-r1 unifi.service
+       systemd_newunit "${FILESDIR}"/unifi.service-r2 unifi.service
 
        newconfd "${FILESDIR}"/unifi.confd unifi
 

Reply via email to