NAME
Ubic::Service::Hypnotoad - Ubic service module for Mojolicious Hypnotoad
VERSION
version 0.3005
SYNOPSIS
return
Ubic::Service::Hypnotoad->new({
bin
=>
'/usr/bin/hypnotoad'
,
# or 'carton exec hypnotoad', or ['carton', 'exec', 'hypnotoad'], optional, defaults to 'hypnotoad'
app
=>
'/home/www/mysite.app'
,
pid_file
=>
'/var/log/mysite.pid'
,
# optional, defaults to a hypnotoad.pid file lying next to "app"
cwd
=>
'/path/to/app/'
,
# optional, change working directory before starting a daemon
env
=> {
# optional environment variables
MOJO_FLAG_A
=> 1,
MOJO_CONFIG
=>
'...'
,
},
wait_status
=> {
# optional wait until status will change state
step
=> 2,
# default 0.1
trials
=> 4,
# default 10
}
});
DESCRIPTION
This service is a common ubic wrap for launching your applications with Hypnotoad.
ACTIONS
status
Get status of service.
start
Start service.
stop
Stop service
reload
Send a USR2 signal to the process, to have it do an "automatic hot deployment".
BUGS
If you have a Github account, report your issues at https://github.com/akarelas/ubic-service-hypnotoad/issues. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
AUTHOR
Alexander Karelas <karjala@karjala.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Alexander Karelas.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.