Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
#!/bin/bash | |
printeval() { test $# -gt 0 && echo $@ && eval $@; } | |
upstall() { type -P $1 || printeval $2 && printeval $3; } | |
addset() { grep -q "^$1" $3 && sed -i "" "s/^$1.*/$1=$2/" $3 || echo "$1=$2" >> $3; } | |
xcode-select --install | |
upstall brew 'ruby -e "$(curl -s https://raw.githubusercontent.com/Homebrew/install/master/install)" && brew tap caskroom/cask' | |
upstall subl 'brew cask install sublime-text-dev && brew cask install subl' | |
upstall alcatraz 'brew cask install alcatraz' |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)