Rework services

This commit is contained in:
Alex D. 2022-10-18 19:06:48 +00:00
parent 9ac3c8b0bc
commit e361163d29
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
171 changed files with 343 additions and 146 deletions

View File

@ -1,7 +1,7 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=nnd-s6-services
pkgver=0.37
pkgver=0.45
pkgrel=0
pkgdesc="Base services for s6"
url="none"

View File

@ -0,0 +1 @@
0

View File

@ -0,0 +1 @@
nnd-localhost

View File

@ -0,0 +1 @@
20

View File

@ -0,0 +1 @@
1000000

View File

@ -0,0 +1 @@
20

View File

@ -0,0 +1 @@
1000000

View File

@ -0,0 +1 @@
20

View File

@ -0,0 +1 @@
1000000

View File

@ -0,0 +1 @@
vfat

View File

@ -0,0 +1 @@
rw

View File

@ -0,0 +1 @@
LABEL=nnd-boot-efi

View File

@ -0,0 +1 @@
ext4

View File

@ -0,0 +1 @@
rw

View File

@ -0,0 +1 @@
LABEL=nnd-boot

View File

@ -0,0 +1 @@
nosuid,noexec,nodev

View File

@ -0,0 +1 @@
nosuid,noexec,mode=620,ptmxmode=000

View File

@ -0,0 +1 @@
nosuid,noexec,nodev,inode64

View File

@ -0,0 +1 @@
nosuid,noexec,size=10240k,nr_inodes=2028666,mode=755,inode64

View File

@ -0,0 +1 @@
nosuid,nodev,noexec,hidepid=2

View File

@ -0,0 +1 @@
btrfs

View File

@ -0,0 +1 @@
remount,rw

View File

@ -0,0 +1 @@
none

View File

@ -0,0 +1 @@
nodev,nosuid,size=3259832k,nr_inodes=819200,mode=755,inode64

View File

@ -0,0 +1 @@
nosuid,nodev,noexec

View File

@ -0,0 +1 @@
nosuid,nodev,noexec

View File

@ -0,0 +1 @@
nosuid,nodev,noexec

View File

@ -0,0 +1 @@
nosuid,nodev,noexec

View File

@ -0,0 +1 @@
nodev,nosuid

View File

@ -0,0 +1 @@
20

View File

@ -0,0 +1 @@
1000000

View File

@ -0,0 +1 @@
20

View File

@ -0,0 +1 @@
1000000

View File

@ -0,0 +1 @@
20

View File

@ -0,0 +1 @@
1000000

View File

@ -0,0 +1 @@
172.22.12.1/32

View File

@ -0,0 +1 @@
fd42:42:42::2:1/128

View File

@ -0,0 +1 @@
172.22.12.0/24

View File

@ -0,0 +1 @@
fd42:42:42::2:0/120

View File

@ -0,0 +1 @@
/etc/wireguard/wg-tunnel

View File

@ -0,0 +1 @@
20

View File

@ -0,0 +1 @@
1000000

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv

View File

@ -1,10 +1,11 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/core/getty.tty1
importas -i BAUD BAUD
emptyenv
export PATH $PATH
define BAUD 0
define TTY tty1
fdclose 1

View File

@ -0,0 +1 @@
localhost

View File

@ -1,9 +1,10 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/core/hostname
importas -i HOSTNAME HOSTNAME
emptyenv
define HOSTNAME localhost
export PATH $PATH
fdclose 1

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv

View File

@ -1,13 +1,17 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir /etc/s6/env/core/logger
s6-envdir -i /etc/s6/env/logger
importas -i LOGPREFIX LOGPREFIX
s6-envdir -I /etc/s6/env/core/logger.klogd
importas -i LOGSIZE LOGSIZE
importas -i LOGARCHIVES LOGARCHIVES
emptyenv
export PATH $PATH
define LOGGERNAME klogd
define LOGSIZE 1000000
define LOGARCHIVES 20
s6-log -d3 -- t s${LOGSIZE} n${LOGARCHIVES} ${LOGPREFIX}/${LOGGERNAME}

View File

@ -1,13 +1,17 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir /etc/s6/env/core/logger
s6-envdir -i /etc/s6/env/logger
importas -i LOGPREFIX LOGPREFIX
s6-envdir -I /etc/s6/env/core/logger.mdevd
importas -i LOGSIZE LOGSIZE
importas -i LOGARCHIVES LOGARCHIVES
emptyenv
export PATH $PATH
define LOGGERNAME mdevd
define LOGSIZE 1000000
define LOGARCHIVES 20
s6-log -d3 -- t s${LOGSIZE} n${LOGARCHIVES} ${LOGPREFIX}/${LOGGERNAME}

View File

@ -1,13 +1,17 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir /etc/s6/env/core/logger
s6-envdir -i /etc/s6/env/logger
importas -i LOGPREFIX LOGPREFIX
s6-envdir -I /etc/s6/env/core/logger.syslogd
importas -i LOGSIZE LOGSIZE
importas -i LOGARCHIVES LOGARCHIVES
emptyenv
export PATH $PATH
define LOGGERNAME syslogd
define LOGSIZE 1000000
define LOGARCHIVES 20
s6-log -d3 -- t s${LOGSIZE} n${LOGARCHIVES} ${LOGPREFIX}/${LOGGERNAME}

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv
@ -8,4 +8,4 @@ export PATH $PATH
fdclose 1
fdclose 2
mdevd-coldplug
exec mdevd-coldplug

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv

View File

@ -1,5 +1,5 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv

View File

@ -0,0 +1,18 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/core/mount.boot-efi
importas -i SRC SRC
importas -i FSTYPE FSTYPE
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /boot/efi
fdclose 1
fdclose 2
foreground {
mkdir -p $DEST
} mount -t $FSTYPE -o $OPTS $SRC $DEST

View File

@ -0,0 +1,18 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/core/mount.boot
importas -i SRC SRC
importas -i FSTYPE FSTYPE
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /boot
fdclose 1
fdclose 2
foreground {
mkdir -p $DEST
} mount -t $FSTYPE -o $OPTS $SRC $DEST

View File

@ -1,18 +1,21 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/core/mount.dev-mqueue
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /dev/mqueue
define FSTYPE mqueue
define OPTS nosuid,noexec,nodev
fdclose 1
fdclose 2
foreground {
foreground { mkdir -p $DEST } mount -t $FSTYPE -o $OPTS mqueue $DEST
foreground {
mkdir -p $DEST
} mount -t $FSTYPE -o $OPTS mqueue $DEST
} if -nt {
importas status ? test $status -eq 1
}

View File

@ -1,18 +1,21 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/core/mount.dev-pts
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /dev/pts
define FSTYPE devpts
define OPTS nosuid,noexec,mode=620
fdclose 1
fdclose 2
foreground {
foreground { mkdir -p $DEST } mount -t $FSTYPE -o $OPTS pts $DEST
foreground {
mkdir -p $DEST
} mount -t $FSTYPE -o $OPTS pts $DEST
} if -nt {
importas status ? test $status -eq 1
}

View File

@ -1,18 +1,21 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/core/mount.dev-shm
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /dev/shm
define FSTYPE shm
define OPTS nosuid,noexec
fdclose 1
fdclose 2
foreground {
foreground { mkdir -p $DEST } mount -t $FSTYPE -o $OPTS shm $DEST
foreground {
mkdir -p $DEST
} mount -t $FSTYPE -o $OPTS shm $DEST
} if -nt {
importas status ? test $status -eq 1
}

View File

@ -1,18 +1,21 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/core/mount.dev
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /dev
define FSTYPE devtmpfs
define OPTS nosuid,noexec,mode=755
fdclose 1
fdclose 2
foreground {
foreground { mkdir -p $DEST } mount -t $FSTYPE -o $OPTS dev $DEST
foreground {
mkdir -p $DEST
} mount -t $FSTYPE -o $OPTS devtmpfs $DEST
} if -nt {
importas status ? test $status -eq 1
}

View File

@ -1,18 +1,21 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/core/mount.proc
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /proc
define FSTYPE proc
define OPTS nosuid,nodev,noexec,hidepid=2
define FSTYPE procfs
fdclose 1
fdclose 2
foreground {
foreground { mkdir -p $DEST } mount -t $FSTYPE -o $OPTS proc $DEST
foreground {
mkdir -p $DEST
} mount -t $FSTYPE -o $OPTS procfs $DEST
} if -nt {
importas status ? test $status -eq 1
}

View File

@ -0,0 +1 @@
oneshot

View File

@ -1,14 +1,15 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
emptyenv
export PATH $PATH
define DEST /
define FSTYPE ext4
define OPTS remount,rw
fdclose 1
fdclose 2
foreground { mkdir -p $DEST } mount -t $FSTYPE -o $OPTS none $DEST
foreground {
mkdir -p $DEST
} mount -o $OPTS none $DEST

View File

@ -1,14 +1,17 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/core/mount.run
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /run
define FSTYPE tmpfs
define OPTS nodev,nosuid
fdclose 1
fdclose 2
foreground { mkdir -p $DEST } mount -t $FSTYPE -o $OPTS run $DEST
foreground {
mkdir -p $DEST
} mount -t $FSTYPE -o $OPTS run $DEST

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,17 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/core/mount.sys-firmware-efi-efivars
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /sys/firmware/efi/efivars
define FSTYPE efivarfs
fdclose 1
fdclose 2
foreground {
mkdir -p $DEST
} mount -t $FSTYPE -o $OPTS securityfs $DEST

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,17 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/core/mount.sys-fs-pstore
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /sys/fs/pstore
define FSTYPE pstore
fdclose 1
fdclose 2
foreground {
mkdir -p $DEST
} mount -t $FSTYPE -o $OPTS securityfs $DEST

View File

@ -0,0 +1 @@
oneshot

View File

@ -1,18 +1,21 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/core/mount.sys-kernel-security
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /sys/kernel/security
define FSTYPE securityfs
define OPTS nosuid,nodev,noexec
fdclose 1
fdclose 2
foreground {
foreground { mkdir -p $DEST } mount -t $FSTYPE -o $OPTS securityfs $DEST
foreground {
mkdir -p $DEST
} mount -t $FSTYPE -o $OPTS securityfs $DEST
} if -nt {
importas status ? test $status -eq 1
}

View File

@ -1,18 +1,21 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/core/mount.sys
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /sys
define FSTYPE sysfs
define OPTS nosuid,nodev,noexec
fdclose 1
fdclose 2
foreground {
foreground { mkdir -p $DEST } mount -t $FSTYPE -o $OPTS sysfs $DEST
foreground {
mkdir -p $DEST
} mount -t $FSTYPE -o $OPTS sysfs $DEST
} if -nt {
importas status ? test $status -eq 1
}

View File

@ -1,14 +1,17 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/core/mount.tmp
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /tmp
define FSTYPE tmpfs
define OPTS nodev,nosuid
fdclose 1
fdclose 2
foreground { mkdir -p $DEST } mount -t $FSTYPE -o $OPTS tmp $DEST
foreground {
mkdir -p $DEST
} mount -t $FSTYPE -o $OPTS tmp $DEST

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