aboutsummaryrefslogtreecommitdiffstats
path: root/community/socklog/socklog.post-install
diff options
context:
space:
mode:
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