Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name of a handler to be activated upon some event:

Code Block
HANDLER="/etc/utopia/service.d/new_service_handler.sh”


Register for $HANDLER to be activated whenever <event_name> changes value. Ensure that if multiple value changes occur, then only one instance of $HANDLER will be run at a time.

Code Block
sysevent async event_name $HANDLER


Register for $HANDLER to be activated whenever any value is SET for <event_name>

Code Block
sysevent async event_name $HANDLER

...


sysevent setoptions event_name $TUPLE_FLAG_EVENT


Register for $HANDLER to be activated whenever <event_name> changes value. If multiple value changes occur, do NOT enforce that only one instance of $HANDLER will be run at a time.

Code Block
sysevent async_with_flags $ACTION_FLAG_NOT_THREADSAFE event_name $HANDLER


Register for $HANDLER to be activated whenever <event_name> changes and pass the parameter "new_param" as the second parameter in the activation of the handler

Code Block
sysevent async event_name $HANDLER new_param


Unregistering

The calls to sysevent async or sysevent async_with_flags will return an async id. The async id can be used to cancel notifications.
Example:

Code Block
asyncid=`sysevent async event_name $HANDLER`;

...


sysevent set event_name_asyncid_1 $asyncid


and later

Code Block
sysevent rm_async `sysevent get event_name_asyncid_1`

Utopia Open source utilities

...

UtilityDescriptionReference
brctlIt is a tool used to configure Ethernet bridge (Network Bridging)

...

...

vconfig

...

It allows user to create and remove vlan-devices on a vlan enabled kernel. Vlan-devices are virtual Ethernet devices which represents the virtual lans on the physical lan.

...

...

dropbear

...

It is a lightweight SSH2 server designed to be small enough to be used in small memory environments, while still being functional and secure enough.

...

...

dibbler

...

It is an implementation of DHCPv6 Server/Client

...

...

ifconfig

...

Utility used to configure a network interface

...

...

iptables

...

administration tool for IPv4 packet filtering and NAT

...

...

ip rule

...

Utility used to manipulate rules in the routing policy database control the route selection algorithm

...

...

ip route

...

Utility used to manipulate routing tables

...

...

ebtables

...

It is an application program used to set up and maintain the tables of rules (inside the Linux kernel) that inspect Ethernet frames. It is analogous to the iptables application, but less complicated, due to the fact that the Ethernet protocol is much simpler than the IP protocol.

...

...

portmap

...

It a server that converts RPC program numbers into DARPA protocol port numbers. It must be running in order to make RPC calls.

...