Deleted Added
full compact
accounting (230099) accounting (234927)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/accounting 230099 2012-01-14 02:18:41Z dougb $
3# $FreeBSD: head/etc/rc.d/accounting 234927 2012-05-02 14:25:39Z jhb $
4#
5
6# PROVIDE: accounting
7# REQUIRE: mountcritremote
8# BEFORE: DAEMON
9# KEYWORD: nojail
10
11. /etc/rc.subr

--- 48 unchanged lines hidden (view full) ---

60 _file=`mktemp newacct-XXXXX`
61 chmod 644 $_file
62 ${accounting_command} ${_dir}/${_file}
63 fi
64
65 mv ${accounting_file} ${accounting_file}.0
66
67 if checkyesno accounting_enable; then
4#
5
6# PROVIDE: accounting
7# REQUIRE: mountcritremote
8# BEFORE: DAEMON
9# KEYWORD: nojail
10
11. /etc/rc.subr

--- 48 unchanged lines hidden (view full) ---

60 _file=`mktemp newacct-XXXXX`
61 chmod 644 $_file
62 ${accounting_command} ${_dir}/${_file}
63 fi
64
65 mv ${accounting_file} ${accounting_file}.0
66
67 if checkyesno accounting_enable; then
68 ln $_file ${accounting_file##*/}
69 ${accounting_command} ${accounting_file}
70 unlink $_file
68 mv $_file ${accounting_file}
71 fi
72}
73
74load_rc_config $name
75run_rc_command "$1"
69 fi
70}
71
72load_rc_config $name
73run_rc_command "$1"