diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2015-12-19 17:55:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-01-06 14:17:59 +0000 |
commit | a7cfdfd28f45309a34e2fb359f5d07cf12a98ce2 (patch) | |
tree | a12f0b2de1e362e6e77630cd4d8e4200af41df40 /testing/runit/README.alpine | |
parent | ef4898b7ef7405e4bb46628b0d574847f5a7adad (diff) | |
download | aports-a7cfdfd28f45309a34e2fb359f5d07cf12a98ce2.tar.bz2 aports-a7cfdfd28f45309a34e2fb359f5d07cf12a98ce2.tar.xz |
testing/runit: add mysqld / postgresql example run scripts
Diffstat (limited to 'testing/runit/README.alpine')
-rw-r--r-- | testing/runit/README.alpine | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/testing/runit/README.alpine b/testing/runit/README.alpine index 16fb7dc5b7..e6b04f03e2 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 |