// Disable removes symlinks(if they exist) created by Enable
Disable removes symlinks(if they exist) created by Enable
// Disable removes symlinks ( if they exist ) created by Enable
func (u *Unit) Disable() (err error) {
	err = u.System.getAndExecute(u.RequiredBy(), func(dep *Unit, gerr error) error {
		if gerr != nil {
			return gerr
		}
		return dep.removeRequiresDep(u)
	})
	if err != nil {
		return
	}
	return u.System.getAndExecute(u.WantedBy(), func(dep *Unit, gerr error) error {
		if gerr != nil {
			return gerr
		}
		return dep.removeWantsDep(u)
	})
}
func ( u * Unit ) Disable ( ) ( err error ) { err = u . System . getAndExecute ( u . RequiredBy ( ) , func ( dep * Unit , gerr error ) error { if gerr != nil { return gerr } return dep . removeRequiresDep ( u ) } ) if err != nil { return } return u . System . getAndExecute ( u . WantedBy ( ) , func ( dep * Unit , gerr error ) error { if gerr != nil { return gerr } return dep . removeWantsDep ( u ) } ) }
Disable removes symlinks(if they exist) created by Enable
Disable removes symlinks ( if they exist ) created by Enable