diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-19 13:48:26 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-19 13:48:26 +0000 |
commit | 844ae757702c53a56ee57056873a8204d256d47e (patch) | |
tree | 72fb217d6155c4468b6d34e67a37b45502cbaf1d /sys-process/below/files | |
parent | fcefa9aa213e0ff26901b351fccd47393113ae5d (diff) |
gentoo auto-resync : 19:12:2022 - 13:48:25
Diffstat (limited to 'sys-process/below/files')
-rw-r--r-- | sys-process/below/files/below.confd | 5 | ||||
-rw-r--r-- | sys-process/below/files/below.initd | 30 | ||||
-rw-r--r-- | sys-process/below/files/below.logrotated | 11 |
3 files changed, 46 insertions, 0 deletions
diff --git a/sys-process/below/files/below.confd b/sys-process/below/files/below.confd new file mode 100644 index 000000000000..bf99fe8c7cb7 --- /dev/null +++ b/sys-process/below/files/below.confd @@ -0,0 +1,5 @@ +### +# Below config +# + +BELOW_EXTRA_ARGS="" diff --git a/sys-process/below/files/below.initd b/sys-process/below/files/below.initd new file mode 100644 index 000000000000..8c1b8eb56cff --- /dev/null +++ b/sys-process/below/files/below.initd @@ -0,0 +1,30 @@ +#!/sbin/openrc-run +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +pidfile=/run/${RC_SVCNAME}.pid +LOGPATH=/var/log/${RC_SVCNAME} +DATADIR=/var/lib/${RC_SVCNAME} +command_user=root +command=/usr/bin/below +command_args="record ${BELOW_EXTRA_ARGS}" +command_background=true +start_stop_daemon_args=" + --chdir ${DATADIR} + -1 ${LOGPATH}/${RC_SVCNAME}.log + -2 ${LOGPATH}/${RC_SVCNAME}.err" + +depend() { + need localmount + after bootmisc +} + +start() { + if [ ! -d "${LOGPATH}" ] ; then + mkdir -p "${LOGPATH}" + fi + if [ ! -d "${DATADIR}" ] ; then + mkdir -p "${DATADIR}" + fi + default_start +} diff --git a/sys-process/below/files/below.logrotated b/sys-process/below/files/below.logrotated new file mode 100644 index 000000000000..90bfe05a3de5 --- /dev/null +++ b/sys-process/below/files/below.logrotated @@ -0,0 +1,11 @@ +/var/log/below/error_*.log { + daily + rotate 14 + maxage 14 + copytruncate + compress + notifempty + missingok + create 0644 root root + su root root +} |