VintageNet.Interface.IfupDaemon (vintage_net v0.11.3) View Source

Wrap MuonTrap.Daemon to start and stop a program based on whether the network is up

Unlike MuonTrap.Daemon, the arguments are called out in the child_spec so it looks like this:

{VintageNet.Interface.IfupDaemon, ifname: ifname, command: program, args: arguments, opts: options]}

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Return whether the daemon is running

Start the IfupDaemon

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

running?(GenServer.server()) :: boolean()

Return whether the daemon is running

Specs

start_link(init_args()) :: GenServer.on_start()

Start the IfupDaemon