aboutsummaryrefslogtreecommitdiffstats
path: root/testing/runit/README.alpine
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2015-12-19 17:55:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-01-06 14:17:59 +0000
commita7cfdfd28f45309a34e2fb359f5d07cf12a98ce2 (patch)
treea12f0b2de1e362e6e77630cd4d8e4200af41df40 /testing/runit/README.alpine
parentef4898b7ef7405e4bb46628b0d574847f5a7adad (diff)
testing/runit: add mysqld / postgresql example run scripts
Diffstat (limited to 'testing/runit/README.alpine')
-rw-r--r--testing/runit/README.alpine19
1 files changed, 18 insertions, 1 deletions
diff --git a/testing/runit/README.alpine b/testing/runit/README.alpine
index 16fb7dc5b7e..e6b04f03e2d 100644
--- a/testing/runit/README.alpine
+++ b/testing/runit/README.alpine
@@ -16,7 +16,24 @@ set -e
ssh-keygen -A
exec /usr/sbin/sshd -D
------------------------------
-Example: /etc/sv/tinyssh/run |
+Example: /etc/sv/mysqld/run |
+------------------------------
+#!/bin/sh
+libs=/var/lib/mysql
+socket=/run/mysqld
+mkdir -p $socket
+chown mysql:mysql $socket
+chown -R mysql:mysql $libs
+exec chpst -u mysql:mysql mysqld --user=mysql 2>&1
+--------------------------------------------------
+Example: /etc/sv/pgsql/run |
+--------------------------------------------------
+#!/bin/sh
+. /etc/conf.d/postgresql
+chown -R postgres:postgres ${PGDATA}
+exec setuidgid postgres /usr/bin/postgres -D ${PGDATA} -o "$PGOPTS" 2>&1
+---------------------------------------------------------------------------------
+Example: /etc/sv/tinyssh/run |
---------------------------------------------------------------------------------
#!/bin/sh
PORT=22