/
etc
/
systemd
/
system
/
multi-user.target.wants
/
/etc/systemd/system/multi-user.target.wants
mkdir
upload
Name
Size
Mode
Actions
aibolit-resident.service
947
0644
edit
dl
rm
atd.service
222
0644
edit
dl
rm
auditd.service
1852
0644
edit
dl
rm
chronyd.service
551
0644
edit
dl
rm
cpanel-onboot.service
684
0644
edit
dl
rm
cpanel.service
716
0644
edit
dl
rm
cpanelquotaonboot.service
324
0644
edit
dl
rm
cpipv6.service
548
0644
edit
dl
rm
crond.service
356
0644
edit
dl
rm
csf.service
270
0644
edit
dl
rm
dovecot.service
362
0644
edit
dl
rm
ea-php74-php-fpm.service
716
0644
edit
dl
rm
ea-php82-php-fpm.service
716
0644
edit
dl
rm
exim.service
427
0644
edit
dl
rm
fastmail.service
316
0644
edit
dl
rm
httpd.service
608
0644
edit
dl
rm
imunify-antivirus.service
3843
0644
edit
dl
rm
imunify-notifier.service
388
0644
edit
dl
rm
ipaliases.service
654
0644
edit
dl
rm
irqbalance.service
475
0644
edit
dl
rm
lfd.service
226
0644
edit
dl
rm
mailman.service
248
0644
edit
dl
rm
mariadb.service
5528
0644
edit
dl
rm
mdmonitor.service
310
0644
edit
dl
rm
nfs-client.target
413
0644
edit
dl
rm
nftables.service
393
0644
edit
dl
rm
nscd.service
512
0644
edit
dl
rm
pdns.service
1426
0644
edit
dl
rm
pure-authd.service
282
0644
edit
dl
rm
pure-ftpd.service
312
0644
edit
dl
rm
remote-fs.target
522
0644
edit
dl
rm
rpcbind.service
544
0644
edit
dl
rm
rsyslog.service
960
0644
edit
dl
rm
securetmp.service
352
0644
edit
dl
rm
smartd.service
329
0644
edit
dl
rm
sshd.service
456
0644
edit
dl
rm
sssd.service
772
0644
edit
dl
rm
sw-engine.service
515
0644
edit
dl
rm
sysstat.service
475
0644
edit
dl
rm
tuned.service
439
0644
edit
dl
rm
wp-toolkit-background-tasks.service
341
0644
edit
dl
rm
wp-toolkit-scheduled-tasks.service
339
0644
edit
dl
rm
Edit:
/usr/lib/systemd/system/mariadb.service
(5528B)
# 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. # # For more info about custom unit files, see systemd.unit(5) or # https://mariadb.com/docs/server/server-management/starting-and-stopping-mariadb/systemd # # Copyright notice: # # 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 10.11.19 database server Documentation=man:mariadbd(8) Documentation=https://mariadb.com/docs/server/server-management/starting-and-stopping-mariadb/systemd After=network.target [Install] WantedBy=multi-user.target [Service] ############################################################################## ## Core requirements ## Type=notify # Setting this to true can break replication and the Type=notify settings # See also bind-address mariadbd option. PrivateNetwork=false ############################################################################## ## Package maintainers ## User=mysql Group=mysql # 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 # 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 # Use an environment file to pass variable _WSREP_NEW_CLUSTER. # Must not be writable by mysql user. EnvironmentFile=-/run/mariadb-wsrep-new-cluster # Needed to create system tables etc. # ExecStartPre=/usr/bin/mariadb-install-db # Start main service # MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb.service.d/MY_SPECIAL.conf # Use the [Service] section and Environment="MYSQLD_OPTS=...". # This isn't a replacement for my.cnf. # _WSREP_NEW_CLUSTER is for the exclusive use of the script galera_new_cluster # # Perform automatic wsrep recovery. When server is started without wsrep, # galera_recovery simply returns an empty string. In any case, however, it is # not expected to return a non-zero status. ExecStart=/bin/sh -c "set -f; [ ! -e /usr/bin/galera_recovery ] && VAR= || \ VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ] || exit 1; \ exec /usr/sbin/mariadbd $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $VAR" # have to set the name explicitly now, otherwise it'll be the # first name from ExecStart SyslogIdentifier=mariadbd 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=true for 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 # Maximium core size. previously [mysqld_safe] core-file-size # LimitCore= # Nice priority. previously [mysqld_safe] nice # Nice=-5 # Timezone. previously [mysqld_safe] timezone # Environment="TZ=UTC" # 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=" # Flush caches. previously [mysqld_safe] flush-caches=1 # ExecStartPre=sync # ExecStartPre=sysctl -q -w vm.drop_caches=3 # numa-interleave=1 equalivant # Change ExecStart=numactl --interleave=all /usr/sbin/mariadbd...... # crash-script equalivent # FailureAction=
Save
cmd:
run