Add graphviz generation and visualization

This requires graphviz to be installed on your machine. If you run the
command with sudo, it will create the files with the original user
ownership to make it easier to remove them without root.
This commit is contained in:
James Shubin
2015-12-29 01:04:03 -05:00
parent 6b4fa21074
commit 1ba6be2957
5 changed files with 126 additions and 1 deletions

View File

@@ -45,6 +45,10 @@ func NewServiceType(name, state, startup string) *ServiceType {
}
}
func (obj *ServiceType) GetType() string {
return "Service"
}
// Service watcher
func (obj *ServiceType) Watch() {
// obj.Name: service name