summaryrefslogtreecommitdiff
path: root/community/percona-server/mysqld.service
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-14 00:01:45 +0000
committerroot <root@rshg054.dnsready.net>2012-07-14 00:01:45 +0000
commite0f65a739c6445de07de1585e72c230958d8f011 (patch)
treed6cfcd449768dbc82f5d5d539ea02333340652b7 /community/percona-server/mysqld.service
parent2aa5510e030a6ac8ec723dfd915a394b888e21c1 (diff)
Sat Jul 14 00:01:45 UTC 2012
Diffstat (limited to 'community/percona-server/mysqld.service')
-rw-r--r--community/percona-server/mysqld.service21
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