diff options
| author | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-01 19:45:20 +0100 |
|---|---|---|
| committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-01 19:45:20 +0100 |
| commit | 269e98c93f1bff77dc33701f1e5e8615a031ec0b (patch) | |
| tree | d6e35e6da4bc19f657ac07ff8447ec065d85a4aa /package/rpcbind/files/rpcbind.init | |
| parent | d1b6ea47f57cbcac8543a4dba976e13e3bc2e985 (diff) | |
| parent | 2a8b0c42a074556bd489ef88a2b788f84ff6cf1e (diff) | |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/rpcbind/files/rpcbind.init')
| -rw-r--r-- | package/rpcbind/files/rpcbind.init | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/package/rpcbind/files/rpcbind.init b/package/rpcbind/files/rpcbind.init new file mode 100644 index 000000000..d11f01100 --- /dev/null +++ b/package/rpcbind/files/rpcbind.init @@ -0,0 +1,28 @@ +#!/bin/sh +#PKG rpcbind +#INIT 60 + +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${rpcbind:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + rpcbind + ;; +stop) + pkill rpcbind + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? |
