diff options
Diffstat (limited to 'community/percona-server/mysqld.service')
-rw-r--r-- | community/percona-server/mysqld.service | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/community/percona-server/mysqld.service b/community/percona-server/mysqld.service new file mode 100644 index 000000000..15802b226 --- /dev/null +++ b/community/percona-server/mysqld.service @@ -0,0 +1,21 @@ +[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 |