X7ROOT File Manager
Current Path:
/usr/local/sbin
usr
/
local
/
sbin
/
📁
..
📄
aria_chk
(5.56 MB)
📄
aria_dump_log
(5.35 MB)
📄
aria_ftdump
(5.37 MB)
📄
aria_pack
(5.4 MB)
📄
aria_read_log
(5.51 MB)
📄
galera_new_cluster
(924 B)
📄
galera_recovery
(3.29 KB)
📄
innochecksum
(4.63 MB)
📄
mariadb
(5.15 MB)
📄
mariadb-access
(109.48 KB)
📄
mariadb-admin
(4.91 MB)
📄
mariadb-binlog
(5.19 MB)
📄
mariadb-check
(4.91 MB)
📄
mariadb-config
(12.2 KB)
📄
mariadb-conv
(4.62 MB)
📄
mariadb-convert-table-format
(4.28 KB)
📄
mariadb-dump
(5.02 MB)
📄
mariadb-dumpslow
(8.19 KB)
📄
mariadb-embedded
(24.68 MB)
📄
mariadb-find-rows
(3.35 KB)
📄
mariadb-fix-extensions
(1.31 KB)
📄
mariadb-hotcopy
(34.67 KB)
📄
mariadb-import
(5.02 MB)
📄
mariadb-install-db
(22.35 KB)
📄
mariadb-ldb
(11.14 MB)
📄
mariadb-plugin
(4.6 MB)
📄
mariadb-secure-installation
(13.65 KB)
📄
mariadb-service-convert
(2.45 KB)
📄
mariadb-setpermission
(17.7 KB)
📄
mariadb-show
(4.9 MB)
📄
mariadb-slap
(4.92 MB)
📄
mariadb-tzinfo-to-sql
(4.6 MB)
📄
mariadb-upgrade
(5.03 MB)
📄
mariadb-waitpid
(4.59 MB)
📄
mariadb_config
(12.2 KB)
📄
mariadbd
(26.73 MB)
📄
mariadbd-multi
(26.85 KB)
📄
mariadbd-safe
(30.59 KB)
📄
mariadbd-safe-helper
(4.56 MB)
📄
msql2mysql
(1.41 KB)
📄
my_print_defaults
(4.59 MB)
📄
myisam_ftdump
(4.91 MB)
📄
myisamchk
(5.04 MB)
📄
myisamlog
(4.89 MB)
📄
myisampack
(4.95 MB)
📄
myrocks_hotbackup
(24.55 KB)
📄
mysql
(5.15 MB)
📄
mysql_config
(4.47 KB)
📄
mysql_embedded
(24.68 MB)
📄
mysql_find_rows
(3.35 KB)
📄
mysql_fix_extensions
(1.31 KB)
📄
mysql_install_db
(22.35 KB)
📄
mysql_ldb
(11.14 MB)
📄
mysql_plugin
(4.6 MB)
📄
mysql_tzinfo_to_sql
(4.6 MB)
📄
mysql_upgrade
(5.03 MB)
📄
mysql_waitpid
(4.59 MB)
📄
mysqlaccess
(109.48 KB)
📄
mysqladmin
(4.91 MB)
📄
mysqlbinlog
(5.19 MB)
📄
mysqlcheck
(4.91 MB)
📄
mysqld
(26.73 MB)
📄
mysqld_multi
(26.85 KB)
📄
mysqld_safe
(30.59 KB)
📄
mysqld_safe_helper
(4.56 MB)
📄
mysqldump
(5.02 MB)
📄
mysqlimport
(5.02 MB)
📄
mysqlshow
(4.9 MB)
📄
mysqlslap
(4.92 MB)
📄
mytop
(72.03 KB)
📄
perror
(4.79 MB)
📄
rcmysql
(0 B)
📄
replace
(4.57 MB)
📄
resolve_stack_dump
(4.59 MB)
📄
resolveip
(4.59 MB)
📄
sst_dump
(6.64 MB)
📄
wsrep_sst_backup
(2.39 KB)
📄
wsrep_sst_common
(68.25 KB)
📄
wsrep_sst_mariabackup
(51.98 KB)
📄
wsrep_sst_mysqldump
(8.82 KB)
📄
wsrep_sst_rsync
(29.84 KB)
📄
wsrep_sst_rsync_wan
(29.84 KB)
Editing: mariadb-service-convert
#!/bin/bash # Copyright (c) 2015, Daniel Black. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA # # PURPOSE: # # Used to generate a mariadb.service file based on the current mysql/mariadb settings # # This is to assist distro maintainers in migrating to systemd service definations from # a user mysqld_safe settings in the my.cnf files. # # Redirect output to user directory like /etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.conf tz_old=$TZ . /usr/bin/mariadbd-safe --dry-run echo "# converted using $0" echo "#" echo echo '[Service]' echo if [[ ( ! -z "$user" && "$user" != "root" && "$user" != "mysql" ) || "${SET_USER}" == 1 ]]; then echo User=$user fi [ -n "${open_files}" ] && echo LimitNOFILE=$open_files [ -n "${core_file_size}" ] && echo LimitCORE=$core_file_size [[ "${niceness}" -gt 0 ]] && echo Nice=$niceness [ "${TZ}" != "${tz_old}" ] && echo Environment=\"TZ=${TZ}\" if [ -n "$mysqld_ld_preload" ]; then new_text="$mysqld_ld_preload" [ -n "$LD_PRELOAD" ] && new_text="$new_text $LD_PRELOAD" echo Environment=\"LD_PRELOAD=`shell_quote_string "$new_text"`\" fi if [ -n "$mysqld_ld_library_path" ]; then new_text="$mysqld_ld_library_path" [ -n "$LD_LIBRARY_PATH" ] && new_text="$new_text:$LD_LIBRARY_PATH" echo Environment=\"LD_LIBRARY_PATH=`shell_quote_string "$new_text"`\" fi if [[ $want_syslog -eq 1 ]]; then echo StandardOutput=syslog echo StandardError=syslog echo SyslogFacility=daemon echo SyslogLevel=err echo SyslogIdentifier=${syslog_tag_mysqld} fi if [[ "${flush_caches}" -gt 0 ]]; then echo ExecStartPre=/usr/bin/sync echo ExecStartPre=/usr/sbin/sysctl -q -w vm.drop_caches=3 fi if [[ "${numa_interleave}" -gt 0 ]]; then echo echo ExecStart=/usr/bin/numactl --interleave=all ${cmd} '${MYSQLD_OPTS}' echo fi if [ -n "${CRASH_SCRIPT}" ]; then echo FailureAction=${CRASH_SCRIPT} fi
Upload File
Create Folder