Daemon::Shutdown::Monitor::smbstatus - check for samba locks
Version 0.02
Monitor samba file locks
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).
smbstatus
How long to sleep between each test
Default: 60 (1 minute)
The time to wait after discovering that all disks are spun down before returning (trigger a shutdown).
Default: 3600 (1 hour)
monitor: smbstatus: trigger_time: 1800 loop_sleep: 360
Run the smbstatus lock monitor
Robin Clarke, <perl at robinclarke.net>
<perl at robinclarke.net>
Ioan Rogers, <ioan.rogers at gmail.com>
<ioan.rogers at gmail.com>
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.
To install Daemon::Shutdown, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Daemon::Shutdown
CPAN shell
perl -MCPAN -e shell install Daemon::Shutdown
For more information on module installation, please visit the detailed CPAN module installation guide.