#!/bin/sh
# HelloPublic: the package's program. Replace it with yours.
# The Command-line tool preset links it into /usr/bin. The Background service and Web app presets start it as
# "HelloPublic serve <port>" and wait for it to listen on that port: this placeholder serves nothing, so it says so and
# ends, and the start reports that it stopped, with these lines from its log.
case "${1-}" in
  serve)
    echo "bin/HelloPublic is the template's placeholder and serves nothing on port ${2-}: put your program in shared/bin/HelloPublic."
    exit 1
    ;;
  *)
    echo "Hello from HelloPublic ${1:-on this NAS}."
    ;;
esac
