aboutsummaryrefslogtreecommitdiffstats
path: root/community/socklog/socklog.post-install
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2016-09-05 14:15:43 +0000
committerJakub Jirutka <jakub@jirutka.cz>2016-09-28 23:43:47 +0200
commitda92db0d6f725c0491da1a4571c393bcfb6f26d6 (patch)
tree2d07770a34193554463f3ac21f1b8d376727af0b /community/socklog/socklog.post-install
parentfea1d2846a97032ab6e69e848cbc735e6be68f23 (diff)
downloadaports-da92db0d6f725c0491da1a4571c393bcfb6f26d6.tar.bz2
aports-da92db0d6f725c0491da1a4571c393bcfb6f26d6.tar.xz
community/socklog: add setup script
Diffstat (limited to 'community/socklog/socklog.post-install')
-rw-r--r--community/socklog/socklog.post-install13
1 files changed, 7 insertions, 6 deletions
diff --git a/community/socklog/socklog.post-install b/community/socklog/socklog.post-install
index de53f609d3..b3aeb8de6f 100644
--- a/community/socklog/socklog.post-install
+++ b/community/socklog/socklog.post-install
@@ -4,6 +4,7 @@
# Distributed under the terms of the GNU General Public License, v2 or later #
adduser -S -D -H -h /var/empty -s /sbin/nologin -g log log 2>/dev/null
+
if [ ! -d /etc/sv/socklog-unix ]; then
socklog-conf unix nobody log
mkdir -p /etc/service
@@ -11,12 +12,12 @@ if [ ! -d /etc/sv/socklog-unix ]; then
fi
if [ ! -f /etc/sv/socklog-unix/run ]; then
-cat > /etc/sv/socklog-unix/run <<EOF
-#!/bin/sh
-/etc/init.d/syslog stop &>/dev/null
-exec 2>&1
-exec chpst -Unobody socklog unix /dev/log
-EOF
+ cat > /etc/sv/socklog-unix/run <<-EOF
+ #!/bin/sh
+
+ exec 2>&1
+ exec chpst -Unobody socklog unix /dev/log
+ EOF
fi
exit 0