Sha256: e6b0f496e9d8ec3912effdb504203774e72bfc4c39adbddcb956986925506c6b

Contents?: true

Size: 365 Bytes

Versions: 33

Compression:

Stored size: 365 Bytes

Contents

#!/bin/bash

set -e

NAME=${1}
USAGE="Usage: sv-enable <service>"
SRC=/etc/sv/${NAME}
DST=/etc/service/${NAME}

if [ "x${1}" = "x" ] ; then
  echo $USAGE
  exit 1
fi

if [ ! -d ${SRC} ] ; then
  echo "Service ${NAME} does not exists"
  exit 1
fi

mkdir -p /etc/service

if [ ! -L $DST ] ; then
  echo " ---> enable ${NAME}"
  rm -rf ${DST}
  ln -s ${SRC} ${DST}
fi

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
vx-worker-0.2.0.pre33 docker/sv-enable
vx-worker-0.2.0.pre32 docker/sv-enable
vx-worker-0.2.0.pre31 docker/sv-enable
vx-worker-0.2.0.pre30 docker/sv-enable
vx-worker-0.2.0.pre29 docker/sv-enable
vx-worker-0.2.0.pre28 docker/sv-enable
evrone-ci-worker-0.2.0.pre28 docker/sv-enable
evrone-ci-worker-0.2.0.pre27 docker/sv-enable
evrone-ci-worker-0.2.0.pre26 docker/sv-enable
evrone-ci-worker-0.2.0.pre25 docker/sv-enable
evrone-ci-worker-0.2.0.pre24 docker/sv-enable
evrone-ci-worker-0.2.0.pre23 docker/sv-enable
evrone-ci-worker-0.2.0.pre22 docker/sv-enable
evrone-ci-worker-0.2.0.pre21 docker/sv-enable
evrone-ci-worker-0.2.0.pre20 docker/sv-enable
evrone-ci-worker-0.2.0.pre19 docker/sv-enable
evrone-ci-worker-0.2.0.pre18 docker/sv-enable
evrone-ci-worker-0.2.0.pre17 docker/sv-enable
evrone-ci-worker-0.2.0.pre15 docker/sv-enable
evrone-ci-worker-0.2.0.pre14 docker/sv-enable