diff options
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 |