Why not adopt me?
NAME
Daemon::Shutdown::Monitor::smbstatus - check for samba locks
SYNOPSIS
Monitor samba file locks
DESCRIPTION
Uses smbstatus
to look for locked files every "loop_sleep". If no files are locked, the flag "trigger_pending" is set. If a further "trigger_time" seconds pass and all disks are still in a spun down state, the trigger is sent back to the parent process (return 1).
METHODS
new
- loop_sleep <Int>
-
How long to sleep between each test
Default: 60 (1 minute)
- trigger_time <Int>
-
The time to wait after discovering that all disks are spun down before returning (trigger a shutdown).
Default: 3600 (1 hour)
Example configuration
monitor: smbstatus: trigger_time: 1800 loop_sleep: 360
run
Run the smbstatus lock monitor
AUTHOR
Robin Clarke, <perl at robinclarke.net>
Ioan Rogers, <ioan.rogers at gmail.com>
LICENSE AND COPYRIGHT
Copyright 2011 Robin Clarke.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.