Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488896 - dev-db/mariadb dev-db/mysql : add systemd unit
Summary: dev-db/mariadb dev-db/mysql : add systemd unit
Status: RESOLVED DUPLICATE of bug 466084
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2013-10-21 15:56 UTC by Matthias Blümel
Modified: 2015-06-21 10:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Blümel 2013-10-21 15:56:10 UTC
dev-db/mariadb and dev-db/mysql may be used also in conjunction with systemd by keeping the existing config files and scripts architecture based on baselayout / openrc, even if setting up systemd to work with or without any openrc remains.

works for me on mariadb:

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

[Service]
User=mysql
Group=mysql

ExecStart=/usr/sbin/mysqld --defaults-file=/etc/mysql/my.cnf

Restart=always
PrivateTmp=true

[Install]
WantedBy=multi-user.target


(Had also to create the directory ‘/var/run/mysqld’, owned by mysql:mysql)


Reproducible: Always

Expected Results:  
provide necessary systemd unit (service file), possibly depending on USE="systemd" with respective dependency to systemd from the systemd overlay in that case
Comment 1 Alexander Tsoy 2013-10-21 16:17:33 UTC
Unit is already in dev-db/mysql-init-scripts-2.0_pre1-r6
Comment 2 Pacho Ramos gentoo-dev 2013-10-21 17:13:02 UTC

*** This bug has been marked as a duplicate of bug 466084 ***