The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

SYNOPSIS

 use XAS::Lib::App::Service;

 my $service = XAS::Lib::App::Service->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 is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.