initial commit of file from CVS for smeserver-mysql on Sat Mar 23 16:06:28 AEDT 2024
This commit is contained in:
43
root/usr/lib/systemd/system/mariadb.service.d/50koozali.conf
Normal file
43
root/usr/lib/systemd/system/mariadb.service.d/50koozali.conf
Normal file
@@ -0,0 +1,43 @@
|
||||
[Unit]
|
||||
Description=MariaDB database server
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
#reset
|
||||
ExecStartPre=
|
||||
#ours : we need root user as + and ! are not yet supported
|
||||
ExecStartPre=-/sbin/e-smith/service-status mariadb
|
||||
ExecStartPre=-/sbin/e-smith/expand-template /var/lib/mysql/set.password
|
||||
ExecStartPre=-/sbin/e-smith/expand-template /root/.my.cnf
|
||||
ExecStartPre=-/sbin/e-smith/expand-template /etc/my.cnf
|
||||
ExecStartPre=/sbin/e-smith/systemd/mariadb-initialize
|
||||
|
||||
#reset
|
||||
ExecStart=
|
||||
#ours
|
||||
ExecStart=/usr/libexec/mysqld \
|
||||
--defaults-file=/etc/my.cnf \
|
||||
--basedir=/usr \
|
||||
--datadir=/var/lib/mysql \
|
||||
--user=mysql \
|
||||
--pid-file=/var/run/mariadb/mariadb.pid
|
||||
|
||||
#reset
|
||||
ExecStartPost=
|
||||
#ours
|
||||
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=sme-server.target
|
||||
|
18
root/usr/lib/systemd/system/mysql.init.service
Normal file
18
root/usr/lib/systemd/system/mysql.init.service
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Koozali SME Server mysql DB injector for mariadb
|
||||
After=mariadb.service
|
||||
Requires=mariadb.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Restart=no
|
||||
TimeoutSec=10min
|
||||
IgnoreSIGPIPE=no
|
||||
KillMode=process
|
||||
GuessMainPID=no
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/sbin/e-smith/systemd/mysql.init start
|
||||
ExecStop=/sbin/e-smith/systemd/mysql.init stop
|
||||
|
||||
[Install]
|
||||
WantedBy=sme-server.target
|
Reference in New Issue
Block a user