# It's not recommended to modify this file in-place, because it will be # overwritten during package upgrades. If you want to customize, the # best way is to create a file "/etc/systemd/system/mariadb.service", # containing # .include /usr/lib/systemd/system/mariadb.service # ...make your changes here... # or create a file "/etc/systemd/system/mariadb.service.d/foo.conf", # which doesn't need to include ".include" call and which will be parsed # after the file mariadb.service itself is parsed.
java.lang.NullPointerException # For more info about custom unit files, see systemd.unit(5) or # https://mariadb.com/docs/server/server-management/starting-and-stopping-mariadb/systemd
java.lang.NullPointerException # Copyright notice:
java.lang.NullPointerException # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version.
[Unit]
Description=MariaDB @VERSION@ database server
Documentation=man:mariadbd(8)
Documentation=https://mariadb.com/docs/server/server-management/starting-and-stopping-mariadb/systemd
After=network.target
# CAP_IPC_LOCK To allow memlock to be used as non-root user # These are enabled by default
AmbientCapabilities=CAP_IPC_LOCK
# Prevent writes to /usr, /boot, and /etc
ProtectSystem=full
@SYSTEMD_READWRITEPATH@
# Doesn't yet work properly with SELinux enabled # NoNewPrivileges=true
# Restrict modifications of cgroups from the MariaDB service context.
ProtectControlGroups=true
# Prevent accessing /home, /root and /run/user
ProtectHome=true
# Needed to create system tables etc. # ExecStartPre=@scriptdir@/mariadb-install-db
# Start main service # MYSQLD_OPTS as a user environment variable is deprecated. # Please put equivalent configuration in the MariaDB configuration files.
ExecStart=@sbindir@/mariadbd $MYSQLD_OPTS
@SYSTEMD_EXECSTARTPOST@
KillSignal=SIGTERM
# Don't want to see an automated SIGKILL ever
SendSIGKILL=no
# Restart crashed server only, on-failure would also restart, for example, when # my.cnf contains unknown option
Restart=on-abnormal
RestartSec=5s
UMask=007
############################################################################## ## USERs can override ## ## ## by creating a file in /etc/systemd/system/mariadb.service.d/MY_SPECIAL.conf ##and adding/setting the following under [Service] will override this file's ## settings.
# Useful options not previously available in [mysqld_safe]
# Kernels like killing mariadbd when out of memory because its big. # Lets temper that preference a little. # OOMScoreAdjust=-600
# Explicitly start with high IO priority # BlockIOWeight=1000
# If you don't use the /tmp directory for SELECT ... OUTFILE and # LOAD DATA INFILE you can enable PrivateTmp=truefor a little more security.
PrivateTmp=false
# Set an explicit Start and Stop timeout of 900 seconds (15 minutes!) # this is the same value as used in SysV init scripts in the past # Galera might need a longer timeout, check the KB if you want to change this: # https://mariadb.com/docs/server/server-management/starting-and-stopping-mariadb/systemd
TimeoutStartSec=900
TimeoutStopSec=900
# Set the maximium number of tasks (threads) to 99% of what the system can # handle as set by the kernel, reserve the 1% for a remote ssh connection, # some monitoring, or that backup cron job. Without the directive this would # be 15% (see DefaultTasksMax in systemd man pages).
TasksMax=99%
## ## Options previously available to be set via [mysqld_safe] ## that now needs to be set by systemd config files as mysqld_safe ## isn't executed. ##
# Number of files limit. previously [mysqld_safe] open-files-limit
LimitNOFILE=32768
@SYSTEMD_LIMIT@ # Maximium core size. previously [mysqld_safe] core-file-size # LimitCore=
# Library substitutions. previously [mysqld_safe] malloc-lib with explicit paths # (in LD_LIBRARY_PATH) and library name (in LD_PRELOAD). # Environment="LD_LIBRARY_PATH=/path1 /path2""LD_PRELOAD="
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.