We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4b0b50 commit 747878dCopy full SHA for 747878d
1 file changed
rootfs/etc/s6-overlay/s6-rc.d/unitd/run
@@ -7,17 +7,14 @@ main() {
7
exec > >(while read line; do echo "[unitd] ${line}"; done) 2>&1
8
9
local unitSocket="${UNIT_SOCKET:?}"
10
-
11
- echo "> Start"
12
13
# This is for legacy support for versions prior to 1.30.0
14
if [ -d "/opt/unit" ] && [ -x "/opt/unit/sbin/unitd" ]; then
15
- echo "> Legacy"
+ echo "Legacy Unit installation detected, starting Unit from /opt/unit"
16
/opt/unit/sbin/unitd --no-daemon --tmp "/tmp" --state "/var/lib/unit/state" --modules "/opt/unit/modules" --control "unix:${unitSocket}"
17
return
18
fi
19
20
- echo "> Current"
21
/usr/local/sbin/unitd --no-daemon --control "unix:${unitSocket}"
22
}
23
0 commit comments