From 60358da137cf4793d552201d5c6bf9084c1c2aa4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 3 Aug 2014 19:22:17 +0200 Subject: New service: mysqld. --- services/mysqld/log/run | 2 ++ services/mysqld/log/supervise | 1 + services/mysqld/run | 4 ++++ services/mysqld/supervise | 1 + 4 files changed, 8 insertions(+) create mode 100755 services/mysqld/log/run create mode 120000 services/mysqld/log/supervise create mode 100755 services/mysqld/run create mode 120000 services/mysqld/supervise 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 -- cgit 1.4.1