diff options
Diffstat (limited to 'postinst-runit')
-rw-r--r-- | postinst-runit | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/postinst-runit b/postinst-runit index 7c21f0e..1955857 100644 --- a/postinst-runit +++ b/postinst-runit | |||
@@ -1,20 +1,3 @@ | |||
1 | SV_ABS_DIR=/var/lib/runit/service | ||
2 | SV_DIR=/etc/service | 1 | SV_DIR=/etc/service |
3 | mkdir -p "$SV_ABS_DIR" | ||
4 | if [ ! -e "$SV_DIR" ] ; then | ||
5 | ln -s "$SV_ABS_DIR" "$SV_DIR" | ||
6 | fi | ||
7 | |||
8 | if [ "$(readlink -f "$SV_DIR")" != "$SV_ABS_DIR" ] ; then | ||
9 | cat <<EOF | ||
10 | Service directory '$SV_DIR' exists, but is not symbolic link | ||
11 | to '$SV_ABS_DIR'. It probably means that it was created by | ||
12 | hand or versions of runit below 2.1.2-4. | ||
13 | |||
14 | In either case, please remove service directory yourself and | ||
15 | restart installation. | ||
16 | EOF | ||
17 | exit 1 | ||
18 | fi | ||
19 | ln -sf '/etc/sv/#NAME#' "$SV_DIR/" | 2 | ln -sf '/etc/sv/#NAME#' "$SV_DIR/" |
20 | mkdir -p /var/lib/runit/supervise/#NAME# | 3 | mkdir -p '/var/lib/runit/supervise/#NAME#' |