Skip to content

localias status should return non-zero exit code when daemon is not running #68

@drewbitt

Description

@drewbitt

There's no scriptable way to check if localias is running. localias status always exits 0 regardless of daemon state:

  $ localias status
  daemon running with pid 36566
  $ echo $?
  0

  $ localias stop
  stopping daemon on pid 36566

  $ localias status
  daemon is not running
  $ echo $?
  0

I would like a way to determine that localias is running. Since this doesn't work, I am falling back to pgrep -x localias.

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