Remove redundant ExecStartPost command
The LimitCORE command already sets the process core size limit so the post-start command appears to be useless. In addition, it appears to fail from time to time due to pidof failing to return the process ID of MaxScale right as it starts. This in turn results in an unexplainable failure to start with no messages logged anywhere with the exception of the following from systemctl: [vagrant@maxscale build]$ sudo systemctl status maxscale ● maxscale.service - MariaDB MaxScale Database Proxy Loaded: loaded (/usr/lib/systemd/system/maxscale.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2020-12-16 21:16:55 CET; 26s ago Process: 304024 ExecStartPost=/bin/sh -c prlimit -p $(pidof maxscale) --core=unlimited (code=exited, status=1/FAILURE) Process: 304003 ExecStart=/usr/bin/maxscale (code=exited, status=0/SUCCESS) Process: 304001 ExecStartPre=/usr/bin/install -d /var/lib/maxscale -o maxscale -g maxscale (code=exited, status=0/SUCCESS) Process: 303999 ExecStartPre=/usr/bin/install -d /var/run/maxscale -o maxscale -g maxscale (code=exited, status=0/SUCCESS) Main PID: 304004 (code=exited, status=0/SUCCESS)
This commit is contained in:
parent
85ea8174c4
commit
22a112e137
@ -29,9 +29,7 @@ configure_file(${CMAKE_SOURCE_DIR}/etc/maxscale.conf.in ${CMAKE_BINARY_DIR}/maxs
|
||||
# The systemd service file
|
||||
if (CMAKE_BUILD_TYPE MATCHES "(D|d)(E|e)(B|b)(U|u)(G|g)")
|
||||
# Options enabled only in debug builds (a literal multi-line string)
|
||||
set(SERVICE_FILE_DEBUG_OPTIONS
|
||||
"LimitCORE=infinity
|
||||
ExecStartPost=/bin/sh -c 'prlimit -p $(pidof maxscale) --core=unlimited'")
|
||||
set(SERVICE_FILE_DEBUG_OPTIONS "LimitCORE=infinity")
|
||||
endif()
|
||||
|
||||
configure_file(${CMAKE_SOURCE_DIR}/etc/maxscale.service.in ${CMAKE_BINARY_DIR}/maxscale.service @ONLY)
|
||||
|
Loading…
x
Reference in New Issue
Block a user