diff options
author | sinanmohd <pcmsinan@gmail.com> | 2022-09-05 12:14:57 +0530 |
---|---|---|
committer | sinanmohd <pcmsinan@gmail.com> | 2022-09-05 12:14:57 +0530 |
commit | 7f64c8e3e382291a9627920bfc8564944b57fd5e (patch) | |
tree | b94b9e263e52ce416e7670b533ae424a1804312b /monero/monero-log/run | |
parent | 6dbf4ea4c5249774c84e7c31588bc3d0834fb1e1 (diff) |
s6-rc service scripts for monero
Diffstat (limited to 'monero/monero-log/run')
-rw-r--r-- | monero/monero-log/run | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/monero/monero-log/run b/monero/monero-log/run new file mode 100644 index 0000000..b18d766 --- /dev/null +++ b/monero/monero-log/run @@ -0,0 +1,9 @@ +#!/bin/execlineb -P +envfile /etc/s6/config/monero.conf +importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES +ifelse { test -w /var/log } { + foreground { install -d -o s6log -g s6log /var/log/monero } + s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/monero +} +foreground { install -d -o s6log -g s6log /run/log/monero } +s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/monero |