#!/bin/bash # DO NOT EDIT - This file is being maintained by Chef start() { start-stop-daemon --start --chuid tile --background --make-pidfile -pidfile /var/run/replicate.pid --exec /usr/local/bin/replicate } stop() { start-stop-daemon --stop --retry 300 --pidfile /var/run/replicate.pid --exec /usr/local/bin/replicate } case "$1" in start) start ;; stop) stop ;; restart) stop || exit $? start ;; esac