diff options
Diffstat (limited to 'net/tspc2/files/tspc2.sh.in')
| -rw-r--r-- | net/tspc2/files/tspc2.sh.in | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/net/tspc2/files/tspc2.sh.in b/net/tspc2/files/tspc2.sh.in new file mode 100644 index 000000000000..8c2b03c47973 --- /dev/null +++ b/net/tspc2/files/tspc2.sh.in @@ -0,0 +1,26 @@ +#!/bin/sh + +case "$1" in + +start) + %%PREFIX%%/bin/tspc -f %%PREFIX%%/etc/tspc.conf + echo -n ' tspc2' + ;; + +stop) + killall -TERM tspc + echo -n ' tspc2' + ;; + +restart) + killall -TERM tspc + %%PREFIX%%/bin/tspc -f %%PREFIX%%/etc/tspc.conf + echo 'tspc2 restarted' + ;; + +*) + echo "Usage: ${0##*/}: { start | stop | restart }" >&2 + exit 64 + ;; + +esac |
