Skip to content

removes PID file? #5

@stuart-little

Description

@stuart-little

I was wondering if it is intended behavior that the PID file be removed upon issuing a stop command. I have this, in a script titled <path>/pl.pl:

#!/usr/bin/env perl
use warnings;
use v5.12;

use App::Daemon qw( daemonize );

daemonize();

while(1) {
    sleep(1);
}

If I start it and run <path>/pl.pl status I get

Pid file:    ./pl.pid
Pid in file: 1080593
Running:     yes

Then:

$ <path>/pl.pl stop
$ <path>/pl.pl status
---
Pid file:    ./pl.pid
No pidfile found

I ask because the docs seem to suggest the output to status should be something like

Pid file:    ./pl.pid
Pid in file: 1080593
Running:     no
Name match:  0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions