diff options
author | Laurent Bercot <ska-adelie@skarnet.org> | 2024-02-24 08:53:33 +0000 |
---|---|---|
committer | Laurent Bercot <ska-adelie@skarnet.org> | 2024-02-24 08:57:44 +0000 |
commit | f6caef65cb23c157fa195a56a648235a8af37531 (patch) | |
tree | 1b1d7541270b3f5fb603187e34d7a0aacd2640c6 /user/apaste/apasted.run | |
parent | ca35fa1a22f117398f176d5ecbb2259aab28ab4c (diff) | |
download | packages-f6caef65cb23c157fa195a56a648235a8af37531.tar.gz packages-f6caef65cb23c157fa195a56a648235a8af37531.tar.bz2 packages-f6caef65cb23c157fa195a56a648235a8af37531.tar.xz packages-f6caef65cb23c157fa195a56a648235a8af37531.zip |
user/apaste: new package
Diffstat (limited to 'user/apaste/apasted.run')
-rw-r--r-- | user/apaste/apasted.run | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/user/apaste/apasted.run b/user/apaste/apasted.run new file mode 100644 index 000000000..4b49c6320 --- /dev/null +++ b/user/apaste/apasted.run @@ -0,0 +1,19 @@ +#!/bin/execlineb -S1 + +fdmove -c 2 1 +emptyenv -p +fdmove 1 3 +envfile /etc/conf.d/apasted +multisubstitute +{ + importas -ui APASTED_IPv@V@ APASTED_IPv@V@ + importas -ui APASTED_PORT APASTED_PORT + importas -ui APASTED_ROOT APASTED_ROOT + importas -uD "" APASTED_PREFIX APASTED_PREFIX + importas -uD 10 APASTED_MAXFILES APASTED_MAXFILES + importas -uD 1048576 APASTED_MAXSIZE APASTED_MAXSIZE + importas -uD 10485760 APASTED_MAXTOTALSIZE APASTED_MAXTOTALSIZE +} +s6-envuidgid apasted +s6-tcpserver -1 -U -- ${APASTED_IPv@V@} ${APASTED_PORT} +apasted -r 10000 -w 10000 -d ${APASTED_ROOT} -p ${APASTED_PREFIX} -n ${APASTED_MAXFILES} -s ${APASTED_MAXSIZE} -S ${APASTED_MAXTOTALSIZE} |