NAME

XAS::Lib::App::Services - The base class to write services within the XAS environment

SYNOPSIS

use XAS::Lib::App::Services;

my $service = XAS::Lib::App::Services->new();

$service->run();

DESCRIPTION

This module defines an operating environment for Services. A service is a managed daemon. They behave differently depending on what platform they are running on. On Windows, they will run under the SCM, on Unix like boxes, they may be standalone daemons. These differences are handled by mixins.

The proper mixin is loaded when the process starts, so all the interaction happens in the background. It inherits from XAS::Lib::App. Please see that module for additional documentation.

OPTIONS

This module handles these additional options.

--cfgfile

This defines a configuration file.

--pidfile

This defines the pid file to use.

--install

This will install the service with the Win32 SCM.

--deinstall

This will deinstall the service from the Win32 SCM.

SEE ALSO

XAS

AUTHOR

Kevin L. Esteb, <kevin@kesteb.us>

COPYRIGHT AND LICENSE

Copyright (C) 2014 Kevin L. Esteb

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

See http://dev.perl.org/licenses/ for more information.