diff options
Diffstat (limited to 'net/ipcad/files/ipcad.sh.tmpl')
-rw-r--r-- | net/ipcad/files/ipcad.sh.tmpl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net/ipcad/files/ipcad.sh.tmpl b/net/ipcad/files/ipcad.sh.tmpl new file mode 100644 index 000000000000..6fda2ff21dce --- /dev/null +++ b/net/ipcad/files/ipcad.sh.tmpl @@ -0,0 +1,19 @@ +#!/bin/sh +# ipcad startup script example. + +case "$1" in +start) + if [ -x !!PREFIX!!/bin/ipcad -a -f !!PREFIX!!/etc/ipcad.conf ]; then + !!PREFIX!!/bin/ipcad -rds && echo -n ' ipcad' + fi + ;; +stop) + /usr/bin/killall ipcad && /bin/echo -n ' ipcad' + ;; +*) + /bin/echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 |