Add progress for s6 services
This commit is contained in:
parent
275981e796
commit
5b3bb9d609
|
@ -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/*
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
bundle
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
emptyenv
|
||||||
|
export PATH /bin:/sbin:/usr/bin:/usr/sbin
|
||||||
|
exec hwclock -u --systz
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
logger.klogd
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -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 }
|
|
@ -0,0 +1 @@
|
||||||
|
klogd
|
|
@ -0,0 +1 @@
|
||||||
|
3
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
syslogd
|
|
@ -0,0 +1 @@
|
||||||
|
3
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
emptyenv
|
||||||
|
importas -D /var/log/syslogd -u LOGDEST LOGDEST
|
||||||
|
s6-log -d3 -- t s1000000 n20 $LOGDEST
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -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 }
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -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 }
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
emptyenv
|
||||||
|
export PATH /bin:/sbin:/usr/bin:/usr/sbin
|
||||||
|
exec mount -t tmpfs none /run
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
emptyenv
|
||||||
|
export PATH /bin:/sbin:/usr/bin:/usr/sbin
|
||||||
|
exec mount -t ext4 -o remount,rw /
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -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 }
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
emptyenv
|
||||||
|
export PATH /bin:/sbin:/usr/bin:/usr/sbin
|
||||||
|
exec mount -t tmpfs none /tmp
|
|
@ -0,0 +1 @@
|
||||||
|
3
|
|
@ -0,0 +1 @@
|
||||||
|
logger.syslogd
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
emptyenv
|
||||||
|
s6-envuidgid nobody
|
||||||
|
s6-socklog -d3 -U -t3000
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
bundle
|
|
@ -0,0 +1 @@
|
||||||
|
:0
|
|
@ -0,0 +1 @@
|
||||||
|
logger.dwm
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
dwm.0
|
|
@ -0,0 +1 @@
|
||||||
|
3
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
emptyenv
|
||||||
|
importas -D /var/log/dwm -u LOGDEST LOGDEST
|
||||||
|
s6-log -d3 -- t s1000000 n20 $LOGDEST
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
udevd
|
|
@ -0,0 +1 @@
|
||||||
|
3
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
emptyenv
|
||||||
|
importas -D /var/log/udevd -u LOGDEST LOGDEST
|
||||||
|
s6-log -d3 -- t s1000000 n20 $LOGDEST
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
xorg.0
|
|
@ -0,0 +1 @@
|
||||||
|
3
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
emptyenv
|
||||||
|
importas -D /var/log/xorg -u LOGDEST LOGDEST
|
||||||
|
s6-log -d3 -- t s1000000 n20 $LOGDEST
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
emptyenv
|
||||||
|
export PATH /bin:/sbin:/usr/bin:/usr/sbin
|
||||||
|
foreground { redirfd -w 1 /dev/null udevadm settle }
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -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 }
|
|
@ -0,0 +1 @@
|
||||||
|
logger.udevd
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
emptyenv
|
||||||
|
fdmove -c 2 1
|
||||||
|
export PATH /bin:/sbin:/usr/bin:/usr/sbin
|
||||||
|
exec udevd
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
:0
|
|
@ -0,0 +1 @@
|
||||||
|
2
|
|
@ -0,0 +1 @@
|
||||||
|
3
|
|
@ -0,0 +1 @@
|
||||||
|
logger.xorg
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
bundle
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
emptyenv
|
||||||
|
export PATH /bin:/sbin:/usr/bin:/usr/sbin
|
||||||
|
exec ip link set dev eth0 down
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue