Add progress for s6 services

This commit is contained in:
Alex D. 2022-01-11 20:11:00 +00:00
parent 275981e796
commit 5b3bb9d609
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
120 changed files with 229 additions and 0 deletions

38
main/s6-services/APKBUILD Normal file
View File

@ -0,0 +1,38 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=s6-services
pkgver=0.3
pkgrel=6
pkgdesc="Base services for s6"
url="none"
arch="noarch"
license="MIT"
depends="s6-rc s6-portable-utils s6-linux-utils"
subpackages="$pkgname-core $pkgname-net $pkgname-desktop"
builddir="$srcdir/"
prepare() {
default_prepare
cp -R "$startdir"/rc "$builddir"/rc
}
package() {
mkdir -p "$pkgdir"/etc
mv "$builddir"/rc "$pkgdir"/etc/s6-rc
}
core() {
amove etc/s6-rc/core
}
net() {
amove etc/s6-rc/net
}
desktop() {
amove etc/s6-rc/desktop
}
check() {
s6-rc-compile "$builddir"/compiled "$builddir"/rc/*
}

View File

@ -0,0 +1 @@
bundle

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
emptyenv
export PATH /bin:/sbin:/usr/bin:/usr/sbin
exec hwclock -u --systz

View File

@ -0,0 +1,6 @@
#!/bin/execlineb -P
s6-envdir env
importas -D tty1 -u TTY TTY
importas -D 38400 -u BAUD BAUD
export PATH /bin:/sbin:/usr/bin:/usr/sbin
exec getty $BAUD $TTY

View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,3 @@
#!/bin/execlineb -P
if -t { test -s /etc/hostname } backtick -n -E HOSTNAME { head -1 /etc/hostname }
if -t { test -n $HOSTNAME } redirfd -w 1 /proc/sys/kernel/hostname echo $HOSTNAME

View File

@ -0,0 +1 @@
logger.klogd

View File

@ -0,0 +1,6 @@
#!/bin/execlineb -P
fdmove -c 2 1
redirfd -r 0 /proc/kmsg
emptyenv
export PATH /bin:/sbin:/usr/bin:/usr/sbin
exec ucspilogd

View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,5 @@
#!/bin/execlineb -P
emptyenv
redirfd -w 2 /dev/null
export PATH /bin:/sbin:/usr/bin:/usr/sbin
if -t { pipeline { pipeline { exec find /sys -name modalias -type f -print0 } exec xargs -0 exec sort -u } exec xargs exec modprobe -b -a -s }

View File

@ -0,0 +1 @@
klogd

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
s6-envdir env
importas -D /var/log/klogd -u LOGDEST LOGDEST
s6-log -d3 -- t s1000000 n20 $LOGDEST

View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
syslogd

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
emptyenv
importas -D /var/log/syslogd -u LOGDEST LOGDEST
s6-log -d3 -- t s1000000 n20 $LOGDEST

View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
emptyenv
export PATH /bin:/sbin:/usr/bin:/usr/sbin
foreground { exec mount -t devtmpfs none /dev } if -nt { importas status ? test $status -eq 1 }

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
emptyenv
export PATH /bin:/sbin:/usr/bin:/usr/sbin
foreground { exec mount -t proc none /proc } if -nt { importas status ? test $status -eq 1 }

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
emptyenv
export PATH /bin:/sbin:/usr/bin:/usr/sbin
exec mount -t tmpfs none /run

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
emptyenv
export PATH /bin:/sbin:/usr/bin:/usr/sbin
exec mount -t ext4 -o remount,rw /

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
emptyenv
export PATH /bin:/sbin:/usr/bin:/usr/sbin
foreground { exec mount -t sysfs none /sys } if -nt { importas status ? test $status -eq 1 }

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
emptyenv
export PATH /bin:/sbin:/usr/bin:/usr/sbin
exec mount -t tmpfs none /tmp

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1 @@
logger.syslogd

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
emptyenv
s6-envuidgid nobody
s6-socklog -d3 -U -t3000

View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
bundle

View File

@ -0,0 +1 @@
:0

View File

@ -0,0 +1 @@
logger.dwm

View File

@ -0,0 +1,7 @@
#!/bin/execlineb -P
s6-envdir env
importas -D 0 -u DISPLAY DISPLAY
fdmove -c 2 1
export PATH /bin:/sbin:/usr/bin:/usr/sbin
export DISPLAY $DISPLAY
exec dwm

View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
dwm.0

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
emptyenv
importas -D /var/log/dwm -u LOGDEST LOGDEST
s6-log -d3 -- t s1000000 n20 $LOGDEST

View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
udevd

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
emptyenv
importas -D /var/log/udevd -u LOGDEST LOGDEST
s6-log -d3 -- t s1000000 n20 $LOGDEST

View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
xorg.0

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
emptyenv
importas -D /var/log/xorg -u LOGDEST LOGDEST
s6-log -d3 -- t s1000000 n20 $LOGDEST

View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
emptyenv
export PATH /bin:/sbin:/usr/bin:/usr/sbin
foreground { redirfd -w 1 /dev/null udevadm settle }

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,5 @@
#!/bin/execlineb -P
emptyenv
export PATH /bin:/sbin:/usr/bin:/usr/sbin
foreground { redirfd -w 1 /dev/null udevadm trigger --action=add --type=subsystems }
foreground { redirfd -w 1 /dev/null udevadm trigger --action=add --type=devices }

View File

@ -0,0 +1 @@
logger.udevd

View File

@ -0,0 +1,5 @@
#!/bin/execlineb -P
emptyenv
fdmove -c 2 1
export PATH /bin:/sbin:/usr/bin:/usr/sbin
exec udevd

View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
:0

View File

@ -0,0 +1 @@
2

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1 @@
logger.xorg

View File

@ -0,0 +1,7 @@
#!/bin/execlineb -P
s6-envdir env
importas -D 2 -u TTYN TTYN
importas -D 0 -u DISPLAY DISPLAY
fdmove -c 2 1
export PATH /bin:/sbin:/usr/bin:/usr/sbin
exec Xorg $DISPLAY -displayfd 3 -noreset -nolisten tcp -verbose 10 vt$TTYN

View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
bundle

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
emptyenv
export PATH /bin:/sbin:/usr/bin:/usr/sbin
exec ip link set dev eth0 down

View File

@ -0,0 +1 @@
oneshot

Some files were not shown because too many files have changed in this diff Show More