mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
22 lines
454 B
SYSTEMD
22 lines
454 B
SYSTEMD
|
[Unit]
|
||
|
Description=MySQL database server
|
||
|
After=syslog.target network.target
|
||
|
|
||
|
[Service]
|
||
|
User=mysql
|
||
|
Group=mysql
|
||
|
|
||
|
ExecStart=/usr/bin/mysqld --pid-file=/var/run/mysqld/mysqld.pid
|
||
|
ExecStop=/bin/kill -15 $MAINPID
|
||
|
PIDFile=/var/run/mysqld/mysqld.pid
|
||
|
WorkingDirectory=/usr
|
||
|
|
||
|
# We rely on systemd, not mysqld_safe, to restart mysqld if it dies
|
||
|
Restart=always
|
||
|
|
||
|
# Place temp files in a secure directory, not /tmp
|
||
|
PrivateTmp=true
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|