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