4 # homepage: https://git.rootprojects.org/root/serviceman
5 # tagline: cross-platform service management for Linux, Mac, and Windows
13 # serviceman add --name my-service ./serve.js --port 3000
20 my_url="https://rootprojects.org/serviceman/dist/$(uname -s)/$(uname -m)/serviceman"
21 curl -fL "$my_url" -o serviceman
25 # Move to ~/.local/bin
27 mv ./serviceman ~/.local/bin
31 my_serviceman=$(command -v serviceman)
33 if [ -n "$my_serviceman" ]; then
34 if [ "$my_serviceman" != "$HOME/.local/bin/serviceman" ]; then
35 echo "a serviceman installation (which make take precedence) exists at:"
36 echo " $my_serviceman"
41 # add to ~/.local/bin to PATH, just in case
42 pathman add ~/.local/bin # > /dev/null 2> /dev/null
43 # TODO inform user to add to path, apart from pathman?