summary refs log tree commit diff
diff options
context:
space:
mode:
-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