LINUX.ORG.RU

Unit systemd для percona 5.6 либо mariadb 10 под Fedora 20


0

1

Дорогие анонимусы и пользователи, ни у кого нет хорошего юнита под это дело? А то пакеты собраны для RHEL6, под федорой запуск производится исключительно с помощью chkconfig, /etc/init.d, такой-то матери и создания /var/run/mysqld костылем. А хотелось бы, чтобы все было как у цивилизованных людей.

★★★★★

совсем пооборзевали

а что, ныне

sudo systemctl enable mariadb.service
не модно?
есличо:
 cat /etc/fedora-release && rpm -qa mariadb* && yum info mariadb-server && sudo systemctl status mariadb.service 
Fedora release 20 (Heisenbug)
mariadb-libs-5.5.36-1.fc20.x86_64
mariadb-5.5.36-1.fc20.x86_64
mariadb-server-5.5.36-1.fc20.x86_64
Загружены модули: langpacks
Установленные пакеты
Название: mariadb-server
Архитектура: x86_64
Период: 1
Версия: 5.5.36
Выпуск: 1.fc20
Объем: 56 M
Источник: installed
Из источника: updates
Аннотация: The MariaDB server and related files
Ссылка: http://mariadb.org
Лицензия: GPLv2 with exceptions and LGPLv2 and BSD
Описание: MariaDB is a multi-user, multi-threaded SQL database server. It is a
        : client/server implementation consisting of a server daemon (mysqld)
        : and many different client programs and libraries. This package contains
        : the MariaDB server and some accompanying files and directories.
        : MariaDB is a community developed branch of MySQL.

mariadb.service - MariaDB database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled)
   Active: active (running) since Вс 2014-03-02 22:29:07 MSK; 1 months 21 days ago

novitchok ★★★★★
()
Ответ на: совсем пооборзевали от novitchok

Именно. 5.5 снес, ибо нужен 10. Десятку взял с оффсайта, а там засада.

shimon ★★★★★
() автор топика
Ответ на: совсем пооборзевали от novitchok

родной федоровский юнит

cat /usr/lib/systemd/system/mariadb.service 
# 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 /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
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F

# For example, if you want to increase mysql's open-files-limit to 10000,
# you need to increase systemd's LimitNOFILE setting, so create a file named
# "/etc/systemd/system/mariadb.service.d/limits.conf" containing:
#	[Service]
#	LimitNOFILE=10000

# Note: /usr/lib/... is recommended in the .include line though /lib/... 
# still works.
# Don't forget to reload systemd daemon after you change unit configuration:
# root> systemctl --system daemon-reload

[Unit]
Description=MariaDB database server
After=syslog.target
After=network.target

[Service]
Type=simple
User=mysql
Group=mysql

ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
# per bug #547485
ExecStart=/usr/bin/mysqld_safe --basedir=/usr
ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID

# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=300

# Place temp files in a secure directory, not /tmp
PrivateTmp=true

[Install]
WantedBy=multi-user.target
novitchok ★★★★★
()
Последнее исправление: novitchok (всего исправлений: 1)
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.