diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2022-02-09 23:53:46 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2022-02-09 23:56:54 +0100 |
commit | f66b68c65f82d22b0d23ecf007e01acb5a0c2a7d (patch) | |
tree | f51a8d8d35d77c3228da1e09ccfd60c0086171c9 /net-wireless/unifi/files/unifi.initd-r2 | |
parent | x11-misc/xflux-gui: drop 1.2.0-r2 (diff) | |
download | gentoo-f66b68c65f82d22b0d23ecf007e01acb5a0c2a7d.tar.gz gentoo-f66b68c65f82d22b0d23ecf007e01acb5a0c2a7d.tar.bz2 gentoo-f66b68c65f82d22b0d23ecf007e01acb5a0c2a7d.zip |
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 <conikost@gentoo.org>
Diffstat (limited to 'net-wireless/unifi/files/unifi.initd-r2')
-rw-r--r-- | net-wireless/unifi/files/unifi.initd-r2 | 22 |
1 files changed, 22 insertions, 0 deletions
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 |