GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  UBIC::DAEMON::PIDSTATE (3)

.ds Aq ’

NAME

Ubic::Daemon::PidState - internal object representing process info stored on disk

CONTENTS

VERSION

version 1.58

INTERFACE SUPPORT

This is considered to be a non-public class. Its interface is subject to change without notice.

METHODS

<B>B>new()<B>B> Constructor. Does nothing by itself, doesn’t read pidfile and doesn’t try to create pid dir.
<B>B>is_empty()<B>B> Check if pid dir doesn’t exist yet.
<B>B>init()<B>B> Create pid dir. After this method is called, is_empty() will start to return false value.
<B>B>read()<B>B> Read daemon info from pidfile.

Returns undef if pidfile not found. Throws exceptions when content is invalid.

<B>B>lock()<B>B> =item <B>lock($timeout)B> Acquire piddir lock. Lock will be nonblocking unless ’timeout’ parameter is set.
<B>B>remove()<B>B> Remove the pidfile from the piddir. is_empty() will still return false.

This method should be called only after lock is acquired via lock() method (TODO - check before removing?).

<B>write({ pid =B> $pid, guid => $guid })> Write guardian pid and guid into the pidfile.

AUTHOR

Vyacheslav Matyukhin <mmcleric@yandex-team.ru>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Yandex LLC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 UBIC::DAEMON::PIDSTATE (3) 2015-01-27

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.