1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/sbin/runscript start() { ebegin "Starting accounting" touch /var/account/pacct chmod 600 /var/account/pacct /usr/sbin/accton /var/account/pacct eend $? } stop() { ebegin "Stopping accounting" /usr/sbin/accton eend $? }