Robin Clarke > Daemon-Shutdown-0.11 > Daemon::Shutdown

Download:
Daemon-Shutdown-0.11.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.11   Source  

NAME ^

Daemon::Shutdown - A Shutdown Daemon

VERSION ^

Version 0.11

SYNOPSIS ^

This is the core of the shutdown daemon script.

use Daemon::Shutdown; my $sdd = Daemon::Shutdown->new( %args ); $sdd->start();

METHODS ^

new

Create new instance of Daemon::Shutdown

PARAMS

Example (YAML formatted) configuration file

--- log_level: INFO log_file: /var/log/sdd.log shutdown_binary: /sbin/shutdown shutdown_args: - -h - now exit_after_trigger: 0 sleep_before_run: 30 verbose: 0 use_sudo: 0 monitor: hdparm: loop_sleep: 60 disks: - /dev/sdb - /dev/sdc - /dev/sdd

toggle_trigger

Toggle whether a monitor wants to shutdown and, if enough agree, call shutdown

shutdown

Shutdown the system, if not in test mode

start

Start the shutdown daemon

AUTHOR ^

Robin Clarke, <perl at robinclarke.net>

BUGS ^

Please report any bugs or feature requests to https://github.com/robin13/sdd

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Daemon::Shutdown

You can also look for information at:

ACKNOWLEDGEMENTS ^

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.

syntax highlighting: