brooklyn-docs/guide/yaml/example_yaml/vanilla-bash-netcat.yaml (8 lines of code) (raw):

name: Simple Netcat Server Example location: localhost services: - type: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess name: Simple Netcat Server launch.command: | echo hello | nc -l 4321 & echo $! > $PID_FILE