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

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]}

Summary

Functions

Returns a specification to start this module under a supervisor.

Return whether the daemon is running

Start the IfupDaemon

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

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

Return whether the daemon is running

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

Start the IfupDaemon