-
Notifications
You must be signed in to change notification settings - Fork 105
/
unifi-video.patch
42 lines (38 loc) · 1.53 KB
/
unifi-video.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- unifi-video.orig 2020-03-23 03:29:04.794581615 +0000
+++ unifi-video 2020-03-23 03:39:22.856719123 +0000
@@ -17,6 +17,7 @@
MAINJAR="${BASEDIR}/lib/airvision.jar"
ENABLE_TMPFS=yes
+CREATE_TMPFS=${CREATE_TMPFS:-yes}
TMPFS_SIZE=15%
UFV_VERBOSE=
@@ -276,7 +277,7 @@
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.port=${JVM_JMXREMOTE_PORT}"
[ -z "${JVM_JMXREMOTE_HOST}" ] && \
- JVM_JMXREMOTE_HOST=$(hostname -I | cut -d' ' -f1)
+ JVM_JMXREMOTE_HOST=$(hostname -i | cut -d' ' -f1)
[ -z "${JVM_JMXREMOTE_HOST}" ] || \
JVM_OPTS="${JVM_OPTS} -Djava.rmi.server.hostname=${JVM_JMXREMOTE_HOST}"
@@ -336,13 +337,12 @@
start)
require_root
update_limits
- ulimit -H -c 200
echo 0x10 > /proc/self/coredump_filter
if is_service_running "${PIDFILE}" >/dev/null; then
log_verbose "${NAME} is already running..."
else
[ -d /var/run/${NAME} ] || mkdir -p /var/run/${NAME}
- [ "x${ENABLE_TMPFS}" = "xyes" ] && prepare_tmpfs ${TMPFS_DIR} ${TMPFS_SIZE}
+ [ "x${CREATE_TMPFS}" = "xyes" ] && prepare_tmpfs ${TMPFS_DIR} ${TMPFS_SIZE}
[ -d "${BASEDIR}/work/Catalina" ] && rm -rf "${BASEDIR}/work/Catalina"
log "Hardware type:${HWTYPE}"
check_and_kill_ems_if_running$
@@ -353,7 +353,6 @@
;;
stop)
require_root
- ulimit -H -c 200
log_verbose "Backing up ${DATADIR}/system.properties in ${BASEDIR}/etc/system.properties"
cp -f "${DATADIR}/system.properties" "${BASEDIR}/etc/system.properties"