diff options
author | Ben Kohler <bkohler@gentoo.org> | 2018-06-29 08:58:30 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2018-06-29 09:12:58 -0500 |
commit | 7751ceea39908447f08e3c87522158bd87212897 (patch) | |
tree | a1a0afdaa351a050d9170b0f5098e4f29880d551 /net-wireless/unifi/files | |
parent | dev-ada/gnatcoll-bindings: Fix used C compiler (diff) | |
download | gentoo-7751ceea39908447f08e3c87522158bd87212897.tar.gz gentoo-7751ceea39908447f08e3c87522158bd87212897.tar.bz2 gentoo-7751ceea39908447f08e3c87522158bd87212897.zip |
net-wireless/unifi: revbumps for revised init script
This new init script should handle stop & restart much more nicely.
Also it's been simplified a bit, moving much of the long s-s-d command
into relevant variables. Thanks ConiKost.
Package-Manager: Portage-2.3.41, Repoman-2.3.9
Diffstat (limited to 'net-wireless/unifi/files')
-rw-r--r-- | net-wireless/unifi/files/unifi.initd-r1 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/net-wireless/unifi/files/unifi.initd-r1 b/net-wireless/unifi/files/unifi.initd-r1 new file mode 100644 index 000000000000..2db36571dac0 --- /dev/null +++ b/net-wireless/unifi/files/unifi.initd-r1 @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +ACE_LIB="lib/ace.jar" +DAEMON="${JAVA_HOME-/etc/java-config-2/current-system-vm}"/bin/java +JAVA_OPTS="-Dorg.xerial.snappy.tempdir=/usr/lib/unifi/tmp -Djava.library.path=" +UNIFI_PATH="/usr/lib/unifi" + +UNIFI_USER="unifi" +UNIFI_GROUP="unifi" + +name="UniFi Controller" + +start_stop_daemon_args="--chdir ${UNIFI_PATH}" + +command="${DAEMON}" +command_args="${JAVA_OPTS} -jar ${ACE_LIB} start" +command_background=true +pidfile="/run/${RC_SVCNAME}.pid" + +command_user="${UNIFI_USER}:${UNIFI_GROUP}" + +command_progress=true +retry=TERM/60 |