From f66b68c65f82d22b0d23ecf007e01acb5a0c2a7d Mon Sep 17 00:00:00 2001 From: Conrad Kostecki Date: Wed, 9 Feb 2022 23:53:46 +0100 Subject: net-wireless/unifi: force java8 As UniFi needs Java8, we need to force Java8, even, when user-vm or system-vm is set to a higher version. This is accompilshed by creating a launcher with java-pkg_dolauncher. Bug: https://bugs.gentoo.org/792279 Signed-off-by: Conrad Kostecki --- net-wireless/unifi/files/unifi.initd-r2 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 net-wireless/unifi/files/unifi.initd-r2 (limited to 'net-wireless/unifi/files/unifi.initd-r2') diff --git a/net-wireless/unifi/files/unifi.initd-r2 b/net-wireless/unifi/files/unifi.initd-r2 new file mode 100644 index 000000000000..ccab8df7fd7a --- /dev/null +++ b/net-wireless/unifi/files/unifi.initd-r2 @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2022 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +unifi_exec="/usr/bin/unifi" +unifi_path="/usr/lib/unifi" + +unifi_user="unifi" +unifi_group="unifi" + +name="UniFi Controller" + +start_stop_daemon_args="--chdir ${unifi_path}" + +command="${unifi_exec}" +command_args="start" +command_background=true +command_progress=true +command_user="${unifi_user}:${unifi_group}" + +pidfile="/run/${RC_SVCNAME}.pid" +retry=TERM/60 -- cgit v1.2.3-65-gdbad