System::InitD::Runner

DESCRIPTION

Simple module to process common init.d tasks. init.d bash scripts replacement

AUTHOR

Dmitriy @justnoxx Shamatrin

USAGE

new

new(%)

Constructor, params:

start

A start command

usage

Usage line, called by script usage

daemon_name

Now unused, reserved for output format

restart_timeout

Timeout between stop and start in restart

pid_file

Path to pid file, which used for monitoring

process_name

EXACT daemon process name. Need for preventing wrong kill.

kill_signal

Signal, which used for daemon killing.

run

Runner itself, service sub

load

load($,\&)

Loads additional actions to init script, for example, add `script hello` possible via:

$runner->load('hello', sub {print 'Hello world'})

1 POD Error

The following errors were encountered while parsing the POD:

Around line 3:

Unknown directive: =head