summaryrefslogtreecommitdiff
path: root/net-mgmt/ipcad/files/ipcad.sh.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/ipcad/files/ipcad.sh.tmpl')
-rw-r--r--net-mgmt/ipcad/files/ipcad.sh.tmpl19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-mgmt/ipcad/files/ipcad.sh.tmpl b/net-mgmt/ipcad/files/ipcad.sh.tmpl
new file mode 100644
index 000000000000..6fda2ff21dce
--- /dev/null
+++ b/net-mgmt/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