mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			update coredump handling in S95 files.
							parent
							
								
									8d439c98ea
								
							
						
					
					
						commit
						ab2f475333
					
				|  | @ -14,8 +14,8 @@ load_majestic() { | |||
| 	# shellcheck disable=SC2086 # we need the word splitting | ||||
| 	[ -f /etc/coredump.conf ] && . /etc/coredump.conf | ||||
| 	if [ "$coredump_enabled" ]; then | ||||
| 		ulimit -c unlimited | ||||
| 		echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 		[ "$(yaml-cli -i /etc/majestic.yaml -g .watchdog.timeout)" -lt "30" ] && yaml-cli -i /etc/majestic.yaml -s .watchdog.timeout 30 | ||||
| 		ulimit -c unlimited && echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 	fi | ||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||
| 		-- $DAEMON_ARGS | ||||
|  |  | |||
|  | @ -14,8 +14,8 @@ load_majestic() { | |||
| 	# shellcheck disable=SC2086 # we need the word splitting | ||||
| 	[ -f /etc/coredump.conf ] && . /etc/coredump.conf | ||||
| 	if [ "$coredump_enabled" ]; then | ||||
| 		ulimit -c unlimited | ||||
| 		echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 		[ "$(yaml-cli -i /etc/majestic.yaml -g .watchdog.timeout)" -lt "30" ] && yaml-cli -i /etc/majestic.yaml -s .watchdog.timeout 30 | ||||
| 		ulimit -c unlimited && echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 	fi | ||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||
| 		-- $DAEMON_ARGS | ||||
|  |  | |||
|  | @ -14,8 +14,8 @@ load_majestic() { | |||
| 	# shellcheck disable=SC2086 # we need the word splitting | ||||
| 	[ -f /etc/coredump.conf ] && . /etc/coredump.conf | ||||
| 	if [ "$coredump_enabled" ]; then | ||||
| 		ulimit -c unlimited | ||||
| 		echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 		[ "$(yaml-cli -i /etc/majestic.yaml -g .watchdog.timeout)" -lt "30" ] && yaml-cli -i /etc/majestic.yaml -s .watchdog.timeout 30 | ||||
| 		ulimit -c unlimited && echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 	fi | ||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||
| 		-- $DAEMON_ARGS | ||||
|  |  | |||
|  | @ -14,8 +14,8 @@ load_majestic() { | |||
| 	# shellcheck disable=SC2086 # we need the word splitting | ||||
| 	[ -f /etc/coredump.conf ] && . /etc/coredump.conf | ||||
| 	if [ "$coredump_enabled" ]; then | ||||
| 		ulimit -c unlimited | ||||
| 		echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 		[ "$(yaml-cli -i /etc/majestic.yaml -g .watchdog.timeout)" -lt "30" ] && yaml-cli -i /etc/majestic.yaml -s .watchdog.timeout 30 | ||||
| 		ulimit -c unlimited && echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 	fi | ||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||
| 		-- $DAEMON_ARGS | ||||
|  |  | |||
|  | @ -14,8 +14,8 @@ load_majestic() { | |||
| 	# shellcheck disable=SC2086 # we need the word splitting | ||||
| 	[ -f /etc/coredump.conf ] && . /etc/coredump.conf | ||||
| 	if [ "$coredump_enabled" ]; then | ||||
| 		ulimit -c unlimited | ||||
| 		echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 		[ "$(yaml-cli -i /etc/majestic.yaml -g .watchdog.timeout)" -lt "30" ] && yaml-cli -i /etc/majestic.yaml -s .watchdog.timeout 30 | ||||
| 		ulimit -c unlimited && echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 	fi | ||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||
| 		-- $DAEMON_ARGS | ||||
|  |  | |||
|  | @ -14,8 +14,8 @@ load_majestic() { | |||
| 	# shellcheck disable=SC2086 # we need the word splitting | ||||
| 	[ -f /etc/coredump.conf ] && . /etc/coredump.conf | ||||
| 	if [ "$coredump_enabled" ]; then | ||||
| 		ulimit -c unlimited | ||||
| 		echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 		[ "$(yaml-cli -i /etc/majestic.yaml -g .watchdog.timeout)" -lt "30" ] && yaml-cli -i /etc/majestic.yaml -s .watchdog.timeout 30 | ||||
| 		ulimit -c unlimited && echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 	fi | ||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||
| 		-- $DAEMON_ARGS | ||||
|  |  | |||
|  | @ -14,8 +14,8 @@ load_majestic() { | |||
| 	# shellcheck disable=SC2086 # we need the word splitting | ||||
| 	[ -f /etc/coredump.conf ] && . /etc/coredump.conf | ||||
| 	if [ "$coredump_enabled" ]; then | ||||
| 		ulimit -c unlimited | ||||
| 		echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 		[ "$(yaml-cli -i /etc/majestic.yaml -g .watchdog.timeout)" -lt "30" ] && yaml-cli -i /etc/majestic.yaml -s .watchdog.timeout 30 | ||||
| 		ulimit -c unlimited && echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 	fi | ||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||
| 		-- $DAEMON_ARGS | ||||
|  |  | |||
|  | @ -14,8 +14,8 @@ load_majestic() { | |||
| 	# shellcheck disable=SC2086 # we need the word splitting | ||||
| 	[ -f /etc/coredump.conf ] && . /etc/coredump.conf | ||||
| 	if [ "$coredump_enabled" ]; then | ||||
| 		ulimit -c unlimited | ||||
| 		echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 		[ "$(yaml-cli -i /etc/majestic.yaml -g .watchdog.timeout)" -lt "30" ] && yaml-cli -i /etc/majestic.yaml -s .watchdog.timeout 30 | ||||
| 		ulimit -c unlimited && echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 	fi | ||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||
| 		-- $DAEMON_ARGS | ||||
|  |  | |||
|  | @ -14,8 +14,8 @@ load_majestic() { | |||
| 	# shellcheck disable=SC2086 # we need the word splitting | ||||
| 	[ -f /etc/coredump.conf ] && . /etc/coredump.conf | ||||
| 	if [ "$coredump_enabled" ]; then | ||||
| 		ulimit -c unlimited | ||||
| 		echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 		[ "$(yaml-cli -i /etc/majestic.yaml -g .watchdog.timeout)" -lt "30" ] && yaml-cli -i /etc/majestic.yaml -s .watchdog.timeout 30 | ||||
| 		ulimit -c unlimited && echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 	fi | ||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||
| 		-- $DAEMON_ARGS | ||||
|  |  | |||
|  | @ -13,7 +13,10 @@ load_majestic() { | |||
| 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | ||||
| 	# shellcheck disable=SC2086 # we need the word splitting | ||||
| 	[ -f /etc/coredump.conf ] && . /etc/coredump.conf | ||||
| 	[ "$coredump_enabled" ] && ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern | ||||
| 	if [ "$coredump_enabled" ]; then | ||||
| 		[ "$(yaml-cli -i /etc/majestic.yaml -g .watchdog.timeout)" -lt "30" ] && yaml-cli -i /etc/majestic.yaml -s .watchdog.timeout 30 | ||||
| 		ulimit -c unlimited && echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern | ||||
| 	fi | ||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||
| 		-- $DAEMON_ARGS | ||||
| 	status=$? | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue