Skip to content

commands

CLI commands

Functions:

  • cli

    CLI entry point

  • ls

    Listing all daemons currently found

  • pidfiles

    Get pid files folder. This can be used to cd $(daemonizer pidfiles)

  • restart

    Restart daemons (CLI target)

  • scan

    Scan daemons (CLI target)

  • start

    Start daemons (CLI target)

  • status

    Restart daemons (CLI target)

  • stop

    Stop daemons (CLI target)

  • stop_name

    Stop daemons via daemon's name input.

  • stop_pid

    Stop daemons via PID input.

  • version

    Version info

cli

cli() -> None

CLI entry point

ls

ls() -> None

Listing all daemons currently found

pidfiles

pidfiles() -> None

Get pid files folder. This can be used to cd $(daemonizer pidfiles)

restart

restart(script: str, daemons: Tuple[str, ...], strict: bool) -> None

Restart daemons (CLI target)

scan

scan(script: str, strict: bool) -> None

Scan daemons (CLI target)

start

start(script: str, daemons: Tuple[str, ...], strict: bool) -> None

Start daemons (CLI target)

status

status(script: str, daemons: Tuple[str, ...], strict: bool) -> None

Restart daemons (CLI target)

stop

stop(script: str, daemons: Tuple[str, ...], strict: bool) -> None

Stop daemons (CLI target)

stop_name

stop_name(names: Tuple[str, ...], signal: int) -> None

Stop daemons via daemon's name input.
This command is recommended if you already have the daemon names.

stop_pid

stop_pid(pids: Tuple[int, ...], signal: int) -> None

Stop daemons via PID input.
This command is recommended if you already have the daemon's PID.
On signal reception, daemon will kill stop itself, clean the on-disk PID file and stop the process.

Parameters:

  • pids

    (Tuple[int, ...]) –

    PIDs

  • signal

    (int) –

    Signal to be used

version

version() -> None

Version info