diff options
author | Juan RP <xtraeme@gmail.com> | 2014-08-03 19:22:17 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-08-03 19:22:17 +0200 |
commit | 60358da137cf4793d552201d5c6bf9084c1c2aa4 (patch) | |
tree | cdcea69f7ec28e59e1efe0b30ced48feb1ffb8f5 /services | |
parent | 267b1cbd2c97773a32771b79cdfb039dac2a702b (diff) | |
download | runit-void-60358da137cf4793d552201d5c6bf9084c1c2aa4.tar.gz runit-void-60358da137cf4793d552201d5c6bf9084c1c2aa4.tar.xz runit-void-60358da137cf4793d552201d5c6bf9084c1c2aa4.zip |
New service: mysqld.
Diffstat (limited to 'services')
-rwxr-xr-x | services/mysqld/log/run | 2 | ||||
l--------- | services/mysqld/log/supervise | 1 | ||||
-rwxr-xr-x | services/mysqld/run | 4 | ||||
l--------- | services/mysqld/supervise | 1 |
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 |