Last change
on this file since 255 was 59, checked in by rainer, 18 years ago |
Fix for exit status if database load fails; fix for problem with GrowingLogFiles if signed database is used; better support for *BSD init script installation.
|
File size:
665 bytes
|
Rev | Line | |
---|
[59] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | # PROVIDE: @install_name@
|
---|
| 4 | # REQUIRE: LOGIN
|
---|
| 5 | # KEYWORD: shutdown
|
---|
| 6 |
|
---|
| 7 | . /etc/rc.subr
|
---|
| 8 |
|
---|
| 9 | name="@install_name@"
|
---|
| 10 | rcvar=`set_rcvar`
|
---|
| 11 |
|
---|
| 12 | pidfile="@mylockfile@"
|
---|
| 13 |
|
---|
| 14 | # there are no required_files in general,
|
---|
| 15 | # as they might be downloaded from the server
|
---|
[1] | 16 | #
|
---|
[59] | 17 | # required_files="@myconffile@ @mydatafile@"
|
---|
[1] | 18 |
|
---|
[59] | 19 | extra_commands="reload"
|
---|
| 20 | stop_postcmd="remove_stale_files"
|
---|
[1] | 21 |
|
---|
[59] | 22 | command="@sbindir@/@install_name@"
|
---|
[1] | 23 |
|
---|
[59] | 24 | is_set()
|
---|
| 25 | {
|
---|
| 26 | eval "[ -n \"\${$1+X}\" ]"
|
---|
| 27 | }
|
---|
[1] | 28 |
|
---|
[59] | 29 | remove_stale_files()
|
---|
| 30 | {
|
---|
| 31 | if test -f @mylockfile@; then
|
---|
| 32 | /bin/rm -f @mylockfile@
|
---|
[1] | 33 | fi
|
---|
[59] | 34 | /bin/rm -f @mylockdir@/${name}.sock
|
---|
[1] | 35 | }
|
---|
| 36 |
|
---|
[59] | 37 | load_rc_config "$name"
|
---|
[1] | 38 |
|
---|
[59] | 39 | if ! is_set ${rcvar}; then
|
---|
| 40 | eval "${rcvar}=YES"
|
---|
| 41 | fi
|
---|
[1] | 42 |
|
---|
[59] | 43 | run_rc_command "$1"
|
---|
| 44 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.