diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2016-08-18 20:46:53 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-21 22:24:04 +0200 |
commit | 5c9f3ca3e307be53b45beeed2ce1626f38008625 (patch) | |
tree | 919836fe454e953f46685adf8228b0401280d4b6 /community/runit/README.alpine | |
parent | 6a00a953ba02bab6440a2c784e7db37c6eaeace1 (diff) | |
download | aports-5c9f3ca3e307be53b45beeed2ce1626f38008625.tar.bz2 aports-5c9f3ca3e307be53b45beeed2ce1626f38008625.tar.xz |
testing/[various]: move to community
albatross-themes
apk-post-messages
autossh
bitcoin
btrbk
entr
ffmpegthumbnailer
firejail
firetools
fwsnort
gnome-colors
imapsync
inetutils-syslogd
inotify-tools-inc
isync
junit
ktsuss
letsencrypt-nosudo
libmbim
libndp
libqmi
libteam
mini-sendmail
modemmanager
namecoin
networkmanager
nginx-naxsi
numix-themes
nxapi
opencl-headers
opencl-icd-loader
opus-tools
perl-authen-ntlm
perl-bit-vector
perl-data-uniqid
perl-file-copy-recursive
perl-getopt-argvfile
perl-io-tee
perl-iptables-chainmgr
perl-iptables-parse
perl-module-scandeps
perl-par-dist
perl-par-packer
perl-par
perl-uri-escape
psad
py-crcmod
py-graphviz
py-lz4
py-opencl
py-opengl-accelerate
runit
secpwgen
secure-delete
socklog
spacefm
tinyssh
udevil
virt-viewer
virtualbricks
whois
wrk
xpra
zram-init
Diffstat (limited to 'community/runit/README.alpine')
-rw-r--r-- | community/runit/README.alpine | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/community/runit/README.alpine b/community/runit/README.alpine new file mode 100644 index 0000000000..e6b04f03e2 --- /dev/null +++ b/community/runit/README.alpine @@ -0,0 +1,56 @@ +For service supervision with runit: + +(1) add scripts into /etc/sv/<service>/run + +------------------------------ +Example: /etc/sv/nginx/run | +------------------------------ +#!/bin/sh +mkdir -p /tmp/nginx +exec /usr/sbin/nginx +------------------------------ +Example: /etc/sv/ssh/run | +------------------------------ +#!/bin/sh +set -e +ssh-keygen -A +exec /usr/sbin/sshd -D +------------------------------ +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 +mkdir -p /etc/tinyssh +/usr/sbin/tinysshd-makekey /etc/tinyssh/sshkeys 2>/dev/null +exec tcpserver -HRDl0 0.0.0.0 $PORT /usr/sbin/tinysshd -v -l /etc/tinyssh/sshkeys +--------------------------------------------------------------------------------- + +(2) set permissions: + +chmod 700 /etc/sv/<service>/run + +(3) symlink the script directory to the service directory: + +ln -s /etc/sv/nginx /etc/service/nginx + +========================================================== + +The socklog package by the same author can provide logging +with built in log rotation & also be managed by runit. |