[Lunar-commits] <moonbase> mysql: Adding some systemd stuff.
Dennis `stumbles` Veatch
stumbles at lunar-linux.org
Sun Nov 27 16:16:50 CET 2011
commit f7b63466a1aa096ded96d6097e2b85fe0343e53d
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date: Sun Nov 27 10:16:50 2011 -0500
mysql: Adding some systemd stuff.
---
sql/mysql/DEPENDS | 6 ++----
sql/mysql/systemd.d/mysqld.service | 14 ++++++++++++++
2 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/sql/mysql/DEPENDS b/sql/mysql/DEPENDS
index 2dd7a4b..90f8e29 100644
--- a/sql/mysql/DEPENDS
+++ b/sql/mysql/DEPENDS
@@ -2,7 +2,5 @@ depends chkconfig
depends perl
depends readline
-optional_depends "openssl" \
- "--with-ssl" \
- "--without-ssl" \
- "for SSL support"
+optional_depends "openssl" "--with-ssl" "--without-ssl" "for SSL support"
+optional_depends "systemd" "" "" "for systemd style daemon management"
diff --git a/sql/mysql/systemd.d/mysqld.service b/sql/mysql/systemd.d/mysqld.service
new file mode 100644
index 0000000..b1cd6f6
--- /dev/null
+++ b/sql/mysql/systemd.d/mysqld.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=MySQL Database Server
+After=network.target
+Before=httpd.service postfix.service
+
+[Service]
+Type=simple
+PIDFile=/var/lib/mysql/mysqld.pid
+ExecStart=/usr/libexec/mysqld --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --socket=/var/lib/mysql/mysql.sock
+ExecStop=/bin/kill -15 $MAINPID
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
More information about the Lunar-commits
mailing list