about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-08-03 19:22:17 +0200
committerJuan RP <xtraeme@gmail.com>2014-08-03 19:22:17 +0200
commit60358da137cf4793d552201d5c6bf9084c1c2aa4 (patch)
treecdcea69f7ec28e59e1efe0b30ced48feb1ffb8f5
parent267b1cbd2c97773a32771b79cdfb039dac2a702b (diff)
downloadrunit-void-60358da137cf4793d552201d5c6bf9084c1c2aa4.tar.gz
runit-void-60358da137cf4793d552201d5c6bf9084c1c2aa4.tar.xz
runit-void-60358da137cf4793d552201d5c6bf9084c1c2aa4.zip
New service: mysqld.
-rwxr-xr-xservices/mysqld/log/run2
l---------services/mysqld/log/supervise1
-rwxr-xr-xservices/mysqld/run4
l---------services/mysqld/supervise1
4 files changed, 8 insertions, 0 deletions
diff --git a/services/mysqld/log/run b/services/mysqld/log/run
new file mode 100755
index 0000000..b36c4da
--- /dev/null
+++ b/services/mysqld/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec logger -p daemon.notice
diff --git a/services/mysqld/log/supervise b/services/mysqld/log/supervise
new file mode 120000
index 0000000..497437e
--- /dev/null
+++ b/services/mysqld/log/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.mysqld-log
\ No newline at end of file
diff --git a/services/mysqld/run b/services/mysqld/run
new file mode 100755
index 0000000..bc16a07
--- /dev/null
+++ b/services/mysqld/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ ! -d /run/mysqld ] && mkdir -p /run/mysqld
+chown mysql:mysql /run/mysqld
+exec chpst -u mysql:mysql mysqld --user=mysql 2>&1
diff --git a/services/mysqld/supervise b/services/mysqld/supervise
new file mode 120000
index 0000000..328eee3
--- /dev/null
+++ b/services/mysqld/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.mysqld
\ No newline at end of file