source: trunk/init/samhain.startFreeBSD.in@ 487

Last change on this file since 487 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
RevLine 
[59]1#!/bin/sh
2
3# PROVIDE: @install_name@
4# REQUIRE: LOGIN
5# KEYWORD: shutdown
6
7. /etc/rc.subr
8
9name="@install_name@"
10rcvar=`set_rcvar`
11
12pidfile="@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]19extra_commands="reload"
20stop_postcmd="remove_stale_files"
[1]21
[59]22command="@sbindir@/@install_name@"
[1]23
[59]24is_set()
25{
26 eval "[ -n \"\${$1+X}\" ]"
27}
[1]28
[59]29remove_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]37load_rc_config "$name"
[1]38
[59]39if ! is_set ${rcvar}; then
40 eval "${rcvar}=YES"
41fi
[1]42
[59]43run_rc_command "$1"
44
Note: See TracBrowser for help on using the repository browser.